From e8ea9da26e8b1470b9eedfb9d40e1639904a6e81 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sun, 30 Jun 2024 14:55:35 -0400 Subject: [PATCH] v2.5.0: fixed ratmog killing enemies twice if transmogged over pits --- .../actors/hero/abilities/Ratmogrify.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 8f4ab395d..9d544656e 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 @@ -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); } }