mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
added ion's and showmo's enums
- added nullable DateTime param to UnixTimeStampUTC
This commit is contained in:
@@ -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));
|
||||
|
Reference in New Issue
Block a user