added modifier class

- added auto attack animation (<3 showmoltti)
- added thing to send battle packet from lua
This commit is contained in:
Tahir Akhlaq
2017-08-24 05:12:30 +01:00
parent cbbfa4ed95
commit 9bb298b2f3
5 changed files with 45 additions and 9 deletions

View File

@@ -326,10 +326,16 @@ namespace FFXIVClassic_Map_Server.actors.chara.ai
return false;
bool targetingPlayer = target is Player;
// todo: why is player always zoning?
// cant target if zoning
if (/*target.isZoning || owner.isZoning || */target.zone != owner.zone || targetingPlayer && ((Player)target).playerSession.isUpdatesLocked)
if (targetingPlayer && ((Player)target).playerSession.isUpdatesLocked)
{
owner.Disengage();
return false;
}
if (/*target.isZoning || owner.isZoning || */target.zone != owner.zone)
return false;
if (validTarget == ValidTarget.Self && aoeType != TargetFindAOEType.None && owner != target)