v2.2.0: fixed ratmogrify making raging gnoll brutes invulnerable

This commit is contained in:
Evan Debenham
2023-07-31 12:41:44 -04:00
parent 7127f31095
commit d4d1a5007c

View File

@@ -161,6 +161,11 @@ public class Ratmogrify extends ArmorAbility {
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)
if (!rat.isAlive()){
rat.die(this);
}
}
armor.charge -= chargeUse(hero);