mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
Fixed screwed up cast animation.
This commit is contained in:
@@ -61,7 +61,8 @@ namespace FFXIVClassic_Map_Server.actors.chara.ai.state
|
||||
{
|
||||
// todo: modify spellSpeed based on modifiers and stuff
|
||||
((Player)owner).SendStartCastbar(spell.id, Utils.UnixTimeStampUTC(DateTime.Now.AddSeconds(spellSpeed)));
|
||||
owner.DoBattleAction(spell.id, 0x6F000002, new BattleAction(target.actorId, 30128, 1, 0, 1)); //You begin casting (6F000002: BLM, 6F000003: WHM)
|
||||
owner.SendChant(0xF, 0x0);
|
||||
owner.DoBattleAction(spell.id, 0x6F000002, new BattleAction(target.actorId, 30128, 1, 0, 1)); //You begin casting (6F000002: BLM, 6F000003: WHM)
|
||||
}
|
||||
|
||||
}
|
||||
@@ -97,6 +98,7 @@ namespace FFXIVClassic_Map_Server.actors.chara.ai.state
|
||||
// todo: send paralyzed/sleep message etc.
|
||||
if (errorResult != null)
|
||||
{
|
||||
owner.SendChant(0, 0);
|
||||
owner.DoBattleAction(spell.id, errorResult.animation, errorResult);
|
||||
errorResult = null;
|
||||
}
|
||||
@@ -117,6 +119,7 @@ namespace FFXIVClassic_Map_Server.actors.chara.ai.state
|
||||
actions[i++] = action;
|
||||
}
|
||||
|
||||
owner.SendChant(0, 0);
|
||||
owner.DoBattleAction(spell.id, spell.battleAnimation, actions);
|
||||
}
|
||||
|
||||
@@ -167,7 +170,7 @@ namespace FFXIVClassic_Map_Server.actors.chara.ai.state
|
||||
public override void Cleanup()
|
||||
{
|
||||
if (owner.currentSubState == SetActorStatePacket.SUB_STATE_PLAYER)
|
||||
{
|
||||
{
|
||||
((Player)owner).SendEndCastbar();
|
||||
}
|
||||
// command casting duration
|
||||
|
Reference in New Issue
Block a user