dropping 2 ankhs in a row shouldn't crash (fixes #79)

This commit is contained in:
Timothy Stiles 2021-11-18 18:27:28 +11:00
parent 590ecb36ae
commit 94a7ec5a2c

View File

@ -2952,7 +2952,7 @@ const TILE_TYPES = {
{
if (level.ankh_tile) {
level.transmute_tile(level.ankh_tile, 'floor');
level.spawn_animation(level.ankh_tile, 'puff');
level.spawn_animation(level.ankh_tile.cell, 'puff');
}
let old_tile = level.ankh_tile;
level.ankh_tile = terrain;