fixed auto attacking self/npcs

This commit is contained in:
Tahir Akhlaq
2017-08-24 16:36:56 +01:00
parent 5e2487c8cc
commit 88abd59ec3
4 changed files with 20 additions and 8 deletions

View File

@@ -186,7 +186,7 @@ namespace FFXIVClassic_Map_Server.actors.chara.ai
public bool IsEngaged()
{
// todo: check this is legit
return owner.currentMainState == SetActorStatePacket.MAIN_STATE_ACTIVE;
return owner.currentMainState == SetActorStatePacket.MAIN_STATE_ACTIVE && owner.target != null;
}
public bool IsDead()