v1.1.2: fixed gateway traps teleporting immovable chars

This commit is contained in:
Evan Debenham 2021-12-29 18:28:07 -05:00
parent a4e96c5f80
commit a1b617c707

View File

@ -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()){