v2.0.0: fixed feint not affecting enemies choosing a new target
This commit is contained in:
@@ -377,6 +377,16 @@ public abstract class Mob extends Char {
|
|||||||
closest = curr;
|
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;
|
return closest;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user