v2.5.0: fixed ratmog killing enemies twice if transmogged over pits

This commit is contained in:
Evan Debenham
2024-06-30 14:55:35 -04:00
parent 651cc8631a
commit e8ea9da26e

View File

@@ -169,11 +169,11 @@ public class Ratmogrify extends ArmorAbility {
CellEmitter.get(rat.pos).burst(Speck.factory(Speck.WOOL), 4);
Sample.INSTANCE.play(Assets.Sounds.PUFF);
Dungeon.level.occupyCell(rat);
//for rare cases where a buff was keeping a mob alive (e.g. gnoll brutes)
//for rare cases where a buff was keeping a mob alive (e.g. gnoll brute rage)
if (!rat.isAlive()){
rat.die(this);
} else {
Dungeon.level.occupyCell(rat);
}
}