From d4d1a5007cc7b5bb8ebfdd71a7a7948901a82645 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Mon, 31 Jul 2023 12:41:44 -0400 Subject: [PATCH] v2.2.0: fixed ratmogrify making raging gnoll brutes invulnerable --- .../actors/hero/abilities/Ratmogrify.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/abilities/Ratmogrify.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/abilities/Ratmogrify.java index f38e73e4a..730c225ce 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/abilities/Ratmogrify.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/abilities/Ratmogrify.java @@ -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);