From c624964b7636ecb6ae34ce8fd4302f65607be06d Mon Sep 17 00:00:00 2001 From: "Eevee (Evelyn Woods)" Date: Wed, 17 Apr 2024 19:46:50 -0600 Subject: [PATCH] Oops! Fix calls to blocks_leaving --- js/game.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/game.js b/js/game.js index d10651c..703dfd9 100644 --- a/js/game.js +++ b/js/game.js @@ -1551,13 +1551,13 @@ export class Level extends LevelInterface { let thin_walls = cell[LAYERS.thin_wall]; let blocker; - if (thin_walls && thin_walls.type.blocks_leaving && thin_walls.type.blocks_leaving(thin_walls, actor, direction)) { + if (thin_walls && thin_walls.type.blocks_leaving && thin_walls.type.blocks_leaving(thin_walls, this, actor, direction)) { blocker = thin_walls; } else if (terrain.type.traps && terrain.type.traps(terrain, this, actor)) { blocker = terrain; } - else if (terrain.type.blocks_leaving && terrain.type.blocks_leaving(terrain, actor, direction)) { + else if (terrain.type.blocks_leaving && terrain.type.blocks_leaving(terrain, this, actor, direction)) { blocker = terrain; }