fix ice block/fireball interaction

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

No files matched your search

+4
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;
+1 -1
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') {