void OutdoorPvP::OnGameObjectRemove(GameObject *go) { if (go->GetGoType() != GAMEOBJECT_TYPE_CAPTURE_POINT) return; if (OPvPCapturePoint *cp = GetCapturePoint(go->GetDBTableGUIDLow())) cp->m_capturePoint = NULL; }
void OutdoorPvP::OnGameObjectRemove(GameObject* go) { if (go->GetGoType() != GAMEOBJECT_TYPE_CONTROL_ZONE) return; if (OPvPCapturePoint *cp = GetCapturePoint(go->GetSpawnId())) cp->m_capturePoint = NULL; }
void OutdoorPvP::OnGameObjectCreate(GameObject* go) { if (go->GetGoType() != GAMEOBJECT_TYPE_CAPTURE_POINT) return; if (OPvPCapturePoint *cp = GetCapturePoint(go->GetGUID())) cp->m_capturePoint = go; }
void OutdoorPvP::OnGameObjectRemove(GameObject* go) { m_GoScriptStore.erase(go->GetGUID().GetCounter()); if (go->GetGoType() != GAMEOBJECT_TYPE_CAPTURE_POINT) return; if (OPvPCapturePoint *cp = GetCapturePoint(go->GetSpawnId())) cp->m_capturePoint = NULL; }
void OutdoorPvP::OnGameObjectCreate(GameObject* go) { GoScriptPair sp(go->GetGUID().GetCounter(), go); m_GoScriptStore.insert(sp); if (go->GetGoType() != GAMEOBJECT_TYPE_CAPTURE_POINT) return; if (OPvPCapturePoint *cp = GetCapturePoint(go->GetSpawnId())) cp->m_capturePoint = go; }
SiegeWorkshop *OPvPWintergrasp::GetWorkshop(uint32 lowguid) const { if(OPvPCapturePoint *cp = GetCapturePoint(lowguid)) return dynamic_cast<SiegeWorkshop*>(cp); return NULL; }