v2.1.1: fixed ally AI errors when told to attack during a reposition

This commit is contained in:
Evan Debenham
2023-06-07 13:28:41 -04:00
parent e9ccd7929b
commit aa8c81237e

View File

@@ -47,10 +47,10 @@ public class DirectableAlly extends NPC {
protected boolean movingToDefendPos = false;
public void defendPos( int cell ){
aggro(null);
state = WANDERING;
defendingPos = cell;
movingToDefendPos = true;
aggro(null);
state = WANDERING;
}
public void clearDefensingPos(){
@@ -59,17 +59,17 @@ public class DirectableAlly extends NPC {
}
public void followHero(){
aggro(null);
state = WANDERING;
defendingPos = -1;
movingToDefendPos = false;
aggro(null);
state = WANDERING;
}
public void targetChar( Char ch ){
aggro(ch);
target = ch.pos;
defendingPos = -1;
movingToDefendPos = false;
aggro(ch);
target = ch.pos;
}
@Override