mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-02 19:42:05 -04:00
Wasn't actually sending packets. Changed casting animation back and moved castbar removal to cleanup.
This commit is contained in:
parent
67485eafc0
commit
e60da4f7b4
@ -196,12 +196,12 @@ namespace FFXIVClassic_Map_Server.Actors
|
||||
while (true)
|
||||
{
|
||||
if (actions.Length - currentIndex >= 18)
|
||||
BattleActionX18Packet.BuildPacket(actorId, animationId, commandId, actions, ref currentIndex);
|
||||
zone.BroadcastPacketAroundActor(this, BattleActionX18Packet.BuildPacket(actorId, animationId, commandId, actions, ref currentIndex));
|
||||
else if (actions.Length - currentIndex > 1)
|
||||
BattleActionX10Packet.BuildPacket(actorId, animationId, commandId, actions, ref currentIndex);
|
||||
zone.BroadcastPacketAroundActor(this, BattleActionX10Packet.BuildPacket(actorId, animationId, commandId, actions, ref currentIndex));
|
||||
else if (actions.Length - currentIndex == 1)
|
||||
{
|
||||
BattleActionX01Packet.BuildPacket(actorId, animationId, commandId, actions[currentIndex]);
|
||||
zone.BroadcastPacketAroundActor(this, BattleActionX01Packet.BuildPacket(actorId, animationId, commandId, actions[currentIndex]));
|
||||
currentIndex++;
|
||||
}
|
||||
else
|
||||
@ -217,12 +217,12 @@ namespace FFXIVClassic_Map_Server.Actors
|
||||
while (true)
|
||||
{
|
||||
if (actions.Count - currentIndex >= 18)
|
||||
BattleActionX18Packet.BuildPacket(actorId, animationId, commandId, actions, ref currentIndex);
|
||||
zone.BroadcastPacketAroundActor(this, BattleActionX18Packet.BuildPacket(actorId, animationId, commandId, actions, ref currentIndex));
|
||||
else if (actions.Count - currentIndex > 1)
|
||||
BattleActionX10Packet.BuildPacket(actorId, animationId, commandId, actions, ref currentIndex);
|
||||
zone.BroadcastPacketAroundActor(this, BattleActionX10Packet.BuildPacket(actorId, animationId, commandId, actions, ref currentIndex));
|
||||
else if (actions.Count - currentIndex == 1)
|
||||
{
|
||||
BattleActionX01Packet.BuildPacket(actorId, animationId, commandId, actions[currentIndex]);
|
||||
zone.BroadcastPacketAroundActor(this, BattleActionX01Packet.BuildPacket(actorId, animationId, commandId, actions[currentIndex]));
|
||||
currentIndex++;
|
||||
}
|
||||
else
|
||||
|
@ -61,7 +61,7 @@ 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, spell.battleAnimation, new BattleAction(target.actorId, 30128, 1, 0, 1)); //You begin casting (6F000002: BLM, 6F000003: WHM)
|
||||
owner.DoBattleAction(spell.id, 0x6F000002, new BattleAction(target.actorId, 30128, 1, 0, 1)); //You begin casting (6F000002: BLM, 6F000003: WHM)
|
||||
}
|
||||
|
||||
}
|
||||
@ -103,11 +103,6 @@ namespace FFXIVClassic_Map_Server.actors.chara.ai.state
|
||||
|
||||
public override void OnComplete()
|
||||
{
|
||||
if (owner.currentSubState == SetActorStatePacket.SUB_STATE_PLAYER)
|
||||
{
|
||||
((Player)owner).SendEndCastbar();
|
||||
}
|
||||
|
||||
spell.targetFind.FindWithinArea(target, spell.validTarget);
|
||||
isCompleted = true;
|
||||
|
||||
@ -163,6 +158,10 @@ 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
|
||||
//var packets = new List<SubPacket>();
|
||||
//owner.zone.BroadcastPacketsAroundActor(owner, packets);
|
||||
|
Loading…
Reference in New Issue
Block a user