v2.1.1: fixed ally AI errors when told to attack during a reposition
This commit is contained in:
@@ -47,10 +47,10 @@ public class DirectableAlly extends NPC {
|
|||||||
protected boolean movingToDefendPos = false;
|
protected boolean movingToDefendPos = false;
|
||||||
|
|
||||||
public void defendPos( int cell ){
|
public void defendPos( int cell ){
|
||||||
aggro(null);
|
|
||||||
state = WANDERING;
|
|
||||||
defendingPos = cell;
|
defendingPos = cell;
|
||||||
movingToDefendPos = true;
|
movingToDefendPos = true;
|
||||||
|
aggro(null);
|
||||||
|
state = WANDERING;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void clearDefensingPos(){
|
public void clearDefensingPos(){
|
||||||
@@ -59,17 +59,17 @@ public class DirectableAlly extends NPC {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void followHero(){
|
public void followHero(){
|
||||||
aggro(null);
|
|
||||||
state = WANDERING;
|
|
||||||
defendingPos = -1;
|
defendingPos = -1;
|
||||||
movingToDefendPos = false;
|
movingToDefendPos = false;
|
||||||
|
aggro(null);
|
||||||
|
state = WANDERING;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void targetChar( Char ch ){
|
public void targetChar( Char ch ){
|
||||||
aggro(ch);
|
|
||||||
target = ch.pos;
|
|
||||||
defendingPos = -1;
|
defendingPos = -1;
|
||||||
movingToDefendPos = false;
|
movingToDefendPos = false;
|
||||||
|
aggro(ch);
|
||||||
|
target = ch.pos;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user