From c7f288ea985e26c3cea648fa87da1c58ede33178 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Tue, 25 Jul 2023 13:01:02 -0400 Subject: [PATCH] v2.2.0: corruption no longer causes phantom piranhas to teleport wildly --- .../shatteredpixeldungeon/actors/mobs/PhantomPiranha.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/PhantomPiranha.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/PhantomPiranha.java index cc62854cd..1750db709 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/PhantomPiranha.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/PhantomPiranha.java @@ -24,6 +24,7 @@ package com.shatteredpixel.shatteredpixeldungeon.actors.mobs; import com.shatteredpixel.shatteredpixeldungeon.Dungeon; import com.shatteredpixel.shatteredpixeldungeon.actors.Actor; import com.shatteredpixel.shatteredpixeldungeon.actors.Char; +import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Corruption; import com.shatteredpixel.shatteredpixeldungeon.items.food.PhantomMeat; import com.shatteredpixel.shatteredpixeldungeon.items.scrolls.ScrollOfTeleportation; import com.shatteredpixel.shatteredpixeldungeon.items.wands.Wand; @@ -55,7 +56,7 @@ public class PhantomPiranha extends Piranha { } super.damage(dmg, src); - if (isAlive()) { + if (isAlive() && !(src instanceof Corruption)) { if (dmgSource != null) { if (!Dungeon.level.adjacent(pos, dmgSource.pos)) { ArrayList candidates = new ArrayList<>();