From dad1d8009eded31522785b50f87322d9a4398ef8 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 18 Sep 2025 14:45:51 -0400 Subject: [PATCH] v3.2.5: fixed corruption DOT triggering DM-201s to attack --- .../shatteredpixeldungeon/actors/mobs/DM201.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/DM201.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/DM201.java index 435f534e2..757a67382 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/DM201.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/DM201.java @@ -25,6 +25,7 @@ import com.shatteredpixel.shatteredpixeldungeon.Dungeon; import com.shatteredpixel.shatteredpixeldungeon.actors.Char; import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.Blob; import com.shatteredpixel.shatteredpixeldungeon.actors.blobs.CorrosiveGas; +import com.shatteredpixel.shatteredpixeldungeon.actors.buffs.Corruption; import com.shatteredpixel.shatteredpixeldungeon.items.quest.MetalShard; import com.shatteredpixel.shatteredpixeldungeon.scenes.GameScene; import com.shatteredpixel.shatteredpixeldungeon.sprites.DM201Sprite; @@ -52,9 +53,11 @@ public class DM201 extends DM200 { @Override public void damage(int dmg, Object src) { - if ((src instanceof Char && !Dungeon.level.adjacent(pos, ((Char)src).pos)) - || enemy == null || !Dungeon.level.adjacent(pos, enemy.pos)){ - threatened = true; + if (!(src instanceof Corruption)) { + if ((src instanceof Char && !Dungeon.level.adjacent(pos, ((Char) src).pos)) + || enemy == null || !Dungeon.level.adjacent(pos, enemy.pos)) { + threatened = true; + } } super.damage(dmg, src); }