From df1408e9285e02274566d4136fa52be7cdb309ff Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Fri, 29 Nov 2024 13:31:01 -0500 Subject: [PATCH] v3.0.0: fixed a crash error in new AI logic --- .../shatteredpixel/shatteredpixeldungeon/actors/mobs/Mob.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Mob.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Mob.java index e2bc6f00a..933c30cd2 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Mob.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/mobs/Mob.java @@ -784,7 +784,7 @@ public abstract class Mob extends Char { //assume the hero is hitting us in these common cases if (src instanceof Wand || src instanceof ClericSpell || src instanceof ArmorAbility) { aggro(Dungeon.hero); - target = enemy.pos; + target = Dungeon.hero.pos; } } else { if (src instanceof Wand || src instanceof ClericSpell || src instanceof ArmorAbility) {