After a clone, mark the new clone as stuck too

This commit is contained in:
Eevee (Evelyn Woods) 2020-09-09 20:02:15 -06:00
parent ac053d6c1f
commit 4d44441983

View File

@ -480,7 +480,9 @@ const TILE_TYPES = {
if (level.attempt_step(tile, direction)) {
level.actors.push(tile);
// FIXME add this underneath, just above the cloner
level.add_tile(new tile.constructor(type, direction), cell);
let new_tile = new tile.constructor(type, direction);
level.add_tile(new_tile, cell);
level.set_actor_stuck(new_tile, true);
}
else {
level.set_actor_stuck(tile, true);