Core/Wintergrasp: finish implementation for battlefields. this is highly experimental enable at you're own risk. will almost definatly cause issues with the wintergrasp patch floating around

This commit is contained in:
Kandera committed 2012-08-20 16:23:24 -04:00
1 parent c428675048
commit b9f60fe56c
17 files changed
+100 -53

No files matched your search

+2 -3
View File
@@ -48,6 +48,8 @@
#include "MovementPacketBuilder.h"
#include "DynamicTree.h"
#include "Group.h"
#include "Battlefield.h"
#include "BattlefieldMgr.h"
uint32 GuidHigh2TypeId(uint32 guid_hi)
{
@@ -2331,9 +2333,6 @@ void WorldObject::SetZoneScript()
else if (!map->IsBattlegroundOrArena())
{
if (Battlefield* bf = sBattlefieldMgr->GetBattlefieldToZoneId(GetZoneId()))
m_zoneScript = sOutdoorPvPMgr->GetZoneScript(GetZoneId());
}
}
m_zoneScript = bf;
else
m_zoneScript = sOutdoorPvPMgr->GetZoneScript(GetZoneId());