Force a move on anything released from a trap
This commit is contained in:
1 parent
2b07254d70
commit
bdf0caf4e7
1 file changed
+7
-2
+7
-2
@@ -432,8 +432,13 @@ const TILE_TYPES = {
|
|||||||
let trap = me.connection;
|
let trap = me.connection;
|
||||||
trap.open = true;
|
trap.open = true;
|
||||||
for (let tile of trap.cell) {
|
for (let tile of trap.cell) {
|
||||||
if (tile.stuck) {
|
if (tile.type.is_actor) {
|
||||||
level.set_actor_stuck(tile, false);
|
if (tile.stuck) {
|
||||||
|
level.set_actor_stuck(tile, false);
|
||||||
|
}
|
||||||
|
// Forcibly move anything released from a trap, to keep
|
||||||
|
// it in sync with whatever pushed the button
|
||||||
|
level.attempt_step(tile, tile.direction);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user