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
+1 -3
View File
@@ -94,8 +94,6 @@ namespace Game.Entities
if (!player)
return;
packet.Write();
AccountTypes gmSecLevel = (AccountTypes)WorldConfig.GetIntValue(WorldCfg.GmLevelInWhoList);
foreach (var pair in _socialMap)
{
@@ -114,7 +112,7 @@ namespace Game.Entities
continue;
if (player.IsVisibleGloballyFor(target))
session.SendPacket(packet, false);
session.SendPacket(packet);
}
}
}