Let ServerPacket Handle the writting of packet data.

This commit is contained in:
hondacrx
2017-07-06 11:01:31 -04:00
parent a6b30c73e4
commit 210a2958ff
18 changed files with 73 additions and 80 deletions
+2 -3
View File
@@ -3636,10 +3636,9 @@ namespace Game.Spells
packet.ArbiterGUID = pGameObj.GetGUID();
packet.RequestedByGUID = caster.GetGUID();
packet.RequestedByWowAccount = caster.GetSession().GetAccountGUID();
packet.Write();
caster.SendPacket(packet, false);
target.SendPacket(packet, false);
caster.SendPacket(packet);
target.SendPacket(packet);
// create duel-info
DuelInfo duel = new DuelInfo();