Force a move on anything released from a trap
This commit is contained in:
parent
2b07254d70
commit
bdf0caf4e7
@ -432,8 +432,13 @@ const TILE_TYPES = {
|
||||
let trap = me.connection;
|
||||
trap.open = true;
|
||||
for (let tile of trap.cell) {
|
||||
if (tile.stuck) {
|
||||
level.set_actor_stuck(tile, false);
|
||||
if (tile.type.is_actor) {
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user