added ion's and showmo's enums

- added nullable DateTime param to UnixTimeStampUTC
This commit is contained in:
Tahir Akhlaq
2017-08-26 17:39:28 +01:00
parent 1ae15df64c
commit c070f5b80e
10 changed files with 188 additions and 19 deletions

View File

@@ -113,7 +113,7 @@ namespace FFXIVClassic_Map_Server.actors.chara.ai
public bool CanChangeState()
{
return states.Count == 0 || states.Peek().CanInterrupt();
return GetCurrentState() == null || states.Peek().CanInterrupt();
}
public void ChangeTarget(Character target)
@@ -217,6 +217,14 @@ namespace FFXIVClassic_Map_Server.actors.chara.ai
InternalDisengage();
}
public void Ability(Character target, uint abilityId)
{
if (controller != null)
controller.Ability(target, abilityId);
else
InternalAbility(target, abilityId);
}
public void Cast(Character target, uint spellId)
{
if (controller != null)
@@ -293,6 +301,11 @@ namespace FFXIVClassic_Map_Server.actors.chara.ai
ClearStates();
}
public void InternalAbility(Character target, uint abilityId)
{
}
public void InternalCast(Character target, uint spellId)
{
ChangeState(new MagicState(owner, target, (ushort)spellId));