Oops! Fix calls to blocks_leaving
This commit is contained in:
parent
e9650db4d8
commit
c624964b76
@ -1551,13 +1551,13 @@ export class Level extends LevelInterface {
|
|||||||
let thin_walls = cell[LAYERS.thin_wall];
|
let thin_walls = cell[LAYERS.thin_wall];
|
||||||
let blocker;
|
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;
|
blocker = thin_walls;
|
||||||
}
|
}
|
||||||
else if (terrain.type.traps && terrain.type.traps(terrain, this, actor)) {
|
else if (terrain.type.traps && terrain.type.traps(terrain, this, actor)) {
|
||||||
blocker = terrain;
|
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;
|
blocker = terrain;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user