v1.1.2: fixed gateway traps teleporting immovable chars
This commit is contained in:
parent
a4e96c5f80
commit
a1b617c707
|
@ -82,7 +82,7 @@ public class GatewayTrap extends Trap {
|
|||
for (int i : PathFinder.NEIGHBOURS9){
|
||||
|
||||
Char ch = Actor.findChar(pos + i);
|
||||
if (ch != null){
|
||||
if (ch != null && !Char.hasProp(ch, Char.Property.IMMOVABLE)){
|
||||
int newPos = -1;
|
||||
if (Char.hasProp(ch, Char.Property.LARGE)){
|
||||
if (!largeCharPositions.isEmpty()){
|
||||
|
|
Loading…
Reference in New Issue
Block a user