fix ice block/fireball interaction

This commit is contained in:
Timothy Stiles 2021-02-21 10:23:38 +11:00
parent ac008e9564
commit b74ce300e5
2 changed files with 5 additions and 1 deletions

View File

@ -306,6 +306,10 @@ export class Cell extends Array {
if (! tile.blocks(actor, direction, level))
continue;
if (tile.type.on_after_bumped) {
tile.type.on_after_bumped(tile, level, actor);
}
if (push_mode === null)
return false;

View File

@ -1192,7 +1192,7 @@ const TILE_TYPES = {
frame_block: true,
boulder: true,
},
on_bumped(me, level, other) {
on_after_bumped(me, level, other) {
// Fireballs melt ice blocks on regular floor FIXME and water!
// XXX what if i'm in motion?
if (other.type.name === 'fireball') {