v2.0.0: fixed directable allies being easily distracted from moving

This commit is contained in:
Evan Debenham
2023-03-06 13:42:27 -05:00
parent 70469168e0
commit 94f047eddc

View File

@@ -72,6 +72,14 @@ public class DirectableAlly extends NPC {
movingToDefendPos = false;
}
@Override
public void aggro(Char ch) {
enemy = ch;
if (!movingToDefendPos && state != PASSIVE){
state = HUNTING;
}
}
public void directTocell( int cell ){
if (!Dungeon.level.heroFOV[cell]
|| Actor.findChar(cell) == null