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));
}
}