GL completion animation will only play to self now.

This commit is contained in:
Filip Maj 2017-06-26 00:14:26 -04:00
parent 00757b4ae7
commit c09471ed43
2 changed files with 9 additions and 3 deletions

View File

@ -104,9 +104,15 @@ namespace FFXIVClassic_Map_Server.Actors
} }
public void PlayAnimation(uint animId) public void PlayAnimation(uint animId, bool onlySelf = false)
{ {
zone.BroadcastPacketAroundActor(this, PlayAnimationOnActorPacket.BuildPacket(actorId, actorId, animId)); if (onlySelf)
{
if (this is Player)
((Player)this).QueuePacket(PlayAnimationOnActorPacket.BuildPacket(actorId, actorId, animId));
}
else
zone.BroadcastPacketAroundActor(this, PlayAnimationOnActorPacket.BuildPacket(actorId, actorId, animId));
} }
} }

View File

@ -98,7 +98,7 @@ namespace FFXIVClassic_Map_Server.actors.director
{ {
Player player = (Player)a; Player player = (Player)a;
player.MarkGuildleve(guildleveId, true, true); player.MarkGuildleve(guildleveId, true, true);
player.PlayAnimation(0x02000002); player.PlayAnimation(0x02000002, true);
player.ChangeMusic(81); player.ChangeMusic(81);
player.SendGameMessage(Server.GetWorldManager().GetActor(), 50023, 0x20, (object)(int)guildleveId); player.SendGameMessage(Server.GetWorldManager().GetActor(), 50023, 0x20, (object)(int)guildleveId);
player.SendDataPacket("attention", Server.GetWorldManager().GetActor(), "", 50023, (object)(int)guildleveId); player.SendDataPacket("attention", Server.GetWorldManager().GetActor(), "", 50023, (object)(int)guildleveId);