From 2c9fbbba500d1de03a9d48b2179312e661b9e52d Mon Sep 17 00:00:00 2001 From: "Eevee (Evelyn Woods)" Date: Sun, 27 Dec 2020 09:32:37 -0700 Subject: [PATCH] Make ghosts bonk on ice corners too --- js/game.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/game.js b/js/game.js index 3c0e984..7cd2a81 100644 --- a/js/game.js +++ b/js/game.js @@ -898,7 +898,9 @@ export class Level extends LevelInterface { // Turn the actor around (so ice corners bonk correctly), pretend they stepped on // the tile again (so RFFs roll again), and try moving again this.set_actor_direction(actor, DIRECTIONS[direction].opposite); - if (terrain.type.on_arrive) { + // Note that ghosts bonk even on ice corners, which they can otherwise pass through, + // argh! + if (terrain.type.on_arrive && actor.type.name !== 'ghost') { terrain.type.on_arrive(terrain, this, actor); } success = this.attempt_step(actor, actor.direction);