From 77079ff9a447dd90d34965b4fa29435082f74533 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sun, 6 Jun 2021 13:38:10 -0400 Subject: [PATCH] v0.9.3: fixed ratmogrify costing charge when it fails in some cases --- .../shatteredpixeldungeon/actors/hero/abilities/Ratmogrify.java | 2 ++ 1 file changed, 2 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 5ba8294ac..aefebe2f1 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 @@ -53,6 +53,7 @@ public class Ratmogrify extends ArmorAbility { } else if (ch == hero){ if (!hero.hasTalent(Talent.RATFORCEMENTS)){ GLog.w(Messages.get(this, "self_target")); + return; } else { ArrayList spawnPoints = new ArrayList<>(); @@ -96,6 +97,7 @@ public class Ratmogrify extends ArmorAbility { } } else if (Char.hasProp(ch, Char.Property.MINIBOSS) || Char.hasProp(ch, Char.Property.BOSS)){ GLog.w(Messages.get(this, "too_strong")); + return; } else { TransmogRat rat = new TransmogRat(); rat.setup((Mob)ch);