Fixed screwed up cast animation.

This commit is contained in:
Filip Maj
2017-08-29 22:27:32 -04:00
parent 517bdc0638
commit 4c7928da78
6 changed files with 19 additions and 12 deletions

View File

@@ -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