v2.1.3: fixed magical fire burning internal items after water is spread

This commit is contained in:
Evan Debenham
2023-06-22 11:03:53 -04:00
parent 02210b0a8c
commit d0e62d9200

View File

@@ -216,9 +216,10 @@ public class MagicalFireRoom extends SpecialRoom {
Buff.affect(ch, Burning.class).reignite(ch, 4f);
}
//burn adjacent heaps, but only on outside cells
//burn adjacent heaps, but only on outside and non-water cells
if (Dungeon.level.heaps.get(cell) != null
&& Dungeon.level.map[cell] != Terrain.EMPTY_SP){
&& Dungeon.level.map[cell] != Terrain.EMPTY_SP
&& Dungeon.level.map[cell] != Terrain.WATER){
Dungeon.level.heaps.get(cell).burn();
}
}