fix ice block/fireball interaction
This commit is contained in:
parent
ac008e9564
commit
b74ce300e5
@ -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;
|
||||
|
||||
|
||||
@ -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') {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user