v2.0.0: fixed feint not affecting enemies choosing a new target

This commit is contained in:
Evan Debenham
2023-03-08 17:11:16 -05:00
parent 981935419d
commit 988787321c

View File

@@ -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;
}