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
@@ -376,11 +376,10 @@ namespace Game.Entities
DuelComplete duelCompleted = new DuelComplete();
duelCompleted.Started = type != DuelCompleteType.Interrupted;
duelCompleted.Write();
SendPacket(duelCompleted, false);
SendPacket(duelCompleted);
if (duel.opponent.GetSession() != null)
duel.opponent.SendPacket(duelCompleted, false);
duel.opponent.SendPacket(duelCompleted);
if (type != DuelCompleteType.Interrupted)
{