Core/Battlefield: Move SendInitWorldStatesTo to Battlefield class
Port From (https://github.com/TrinityCore/TrinityCore/commit/366a514462cc3226ebceb61ef9b3fa372788d230)
This commit is contained in:
@@ -469,6 +469,17 @@ namespace Game.BattleFields
|
||||
Global.CreatureTextMgr.SendChat(stalker, (byte)id, target);
|
||||
}
|
||||
|
||||
void SendInitWorldStatesTo(Player player)
|
||||
{
|
||||
InitWorldStates packet = new();
|
||||
packet.MapID = m_MapId;
|
||||
packet.AreaID = m_ZoneId;
|
||||
packet.SubareaID = player.GetAreaId();
|
||||
FillInitialWorldStates(packet);
|
||||
|
||||
player.SendPacket(packet);
|
||||
}
|
||||
|
||||
public void SendUpdateWorldState(WorldStates variable, uint value, bool hidden = false)
|
||||
{
|
||||
SendUpdateWorldState((uint)variable, value, hidden);
|
||||
|
||||
@@ -786,18 +786,6 @@ namespace Game.BattleFields
|
||||
workshop.FillInitialWorldStates(packet);
|
||||
}
|
||||
|
||||
void SendInitWorldStatesTo(Player player)
|
||||
{
|
||||
InitWorldStates packet = new();
|
||||
packet.AreaID = m_ZoneId;
|
||||
packet.MapID = m_MapId;
|
||||
packet.SubareaID = 0;
|
||||
|
||||
FillInitialWorldStates(packet);
|
||||
|
||||
player.SendPacket(packet);
|
||||
}
|
||||
|
||||
public override void SendInitWorldStatesToAll()
|
||||
{
|
||||
for (byte team = 0; team < SharedConst.PvpTeamsCount; team++)
|
||||
|
||||
Reference in New Issue
Block a user