mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
Combat changes and bug fixes
Added the combo and proc systems Added scripts for most weaponskill and spells as well as some abilities and status effects Added support for multihit attacks Added AbilityState for abilities Added hiteffects that change based on an attack's parameters Added positionals Changed how targeting works for battlecommands Fixed bug that occurred when moving or swapping hotbar commands Fixed bug that occurred when losing status effects
This commit is contained in:
@@ -35,9 +35,9 @@ namespace FFXIVClassic_Map_Server.actors.chara.ai
|
||||
actionQueue = new ActionQueue(owner);
|
||||
}
|
||||
|
||||
public void UpdateLastActionTime()
|
||||
public void UpdateLastActionTime(uint delay = 0)
|
||||
{
|
||||
lastActionTime = DateTime.Now;
|
||||
lastActionTime = DateTime.Now.AddSeconds(delay);
|
||||
}
|
||||
|
||||
public DateTime GetLastActionTime()
|
||||
@@ -62,6 +62,7 @@ namespace FFXIVClassic_Map_Server.actors.chara.ai
|
||||
controller.Update(tick);
|
||||
|
||||
State top;
|
||||
|
||||
while (states.Count > 0 && (top = states.Peek()).Update(tick))
|
||||
{
|
||||
if (top == GetCurrentState())
|
||||
@@ -330,7 +331,7 @@ namespace FFXIVClassic_Map_Server.actors.chara.ai
|
||||
{
|
||||
if (CanChangeState())
|
||||
{
|
||||
|
||||
ChangeState(new AbilityState(owner, target, (ushort)abilityId));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user