From 988787321c3f40434942146143737612060404a4 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Wed, 8 Mar 2023 17:11:16 -0500 Subject: [PATCH] v2.0.0: fixed feint not affecting enemies choosing a new target --- .../shatteredpixeldungeon/actors/mobs/Mob.java | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 d1551ff0e..09275c787 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 @@ -377,6 +377,16 @@ public abstract class Mob extends Char { closest = curr; } } + //if we were going to target the hero, but an afterimage exists, target that instead + if (closest == Dungeon.hero){ + for (Char ch : enemies){ + if (ch instanceof Feint.AfterImage){ + closest = ch; + break; + } + } + } + return closest; }