diff options
author | Jeremy <Golrag@users.noreply.github.com> | 2023-06-01 02:33:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-01 02:33:46 +0200 |
commit | c1df555e1691d788918845f95252358f25e54bb5 (patch) | |
tree | 81d3d1ee68e1bde92495e59b6fa3b30294593eaa /src/server/scripts/OutdoorPvP | |
parent | b8b416f85d50cc9849e4cba7d62681f6ae60be31 (diff) |
Core/Graveyards: Drop Faction column and replace it with conditions (#28965)
Diffstat (limited to 'src/server/scripts/OutdoorPvP')
-rw-r--r-- | src/server/scripts/OutdoorPvP/OutdoorPvPNA.cpp | 7 | ||||
-rw-r--r-- | src/server/scripts/OutdoorPvP/OutdoorPvPZM.cpp | 7 |
2 files changed, 0 insertions, 14 deletions
diff --git a/src/server/scripts/OutdoorPvP/OutdoorPvPNA.cpp b/src/server/scripts/OutdoorPvP/OutdoorPvPNA.cpp index 953cfe26d27..06691aa8a0e 100644 --- a/src/server/scripts/OutdoorPvP/OutdoorPvPNA.cpp +++ b/src/server/scripts/OutdoorPvP/OutdoorPvPNA.cpp @@ -29,7 +29,6 @@ uint32 const NA_CREDIT_MARKER = 24867; // kill credit for pks uint32 const NA_GUARDS_MAX = 15; uint32 const NA_BUFF_ZONE = 3518; -uint32 const NA_HALAA_GRAVEYARD = 993; uint32 const NA_HALAA_GRAVEYARD_ZONE = 3518; // need to add zone id, not area id uint32 const NA_RESPAWN_TIME = 3600000; // one hour to capture after defeating all guards uint32 const NA_GUARD_CHECK_TIME = 500; // every half second @@ -87,13 +86,7 @@ uint32 OPvPCapturePointNA::GetControllingFaction() const void OPvPCapturePointNA::FactionTakeOver(uint32 team) { - if (m_ControllingFaction) - sObjectMgr->RemoveGraveyardLink(NA_HALAA_GRAVEYARD, NA_HALAA_GRAVEYARD_ZONE, m_ControllingFaction, false); - m_ControllingFaction = team; - if (m_ControllingFaction) - sObjectMgr->AddGraveyardLink(NA_HALAA_GRAVEYARD, NA_HALAA_GRAVEYARD_ZONE, m_ControllingFaction, false); - m_GuardsAlive = NA_GUARDS_MAX; m_capturable = false; UpdateHalaaWorldState(); diff --git a/src/server/scripts/OutdoorPvP/OutdoorPvPZM.cpp b/src/server/scripts/OutdoorPvP/OutdoorPvPZM.cpp index 7df21ba6fc2..1c8c7c1ae87 100644 --- a/src/server/scripts/OutdoorPvP/OutdoorPvPZM.cpp +++ b/src/server/scripts/OutdoorPvP/OutdoorPvPZM.cpp @@ -36,9 +36,6 @@ uint32 const OutdoorPvPZMBuffZones[OutdoorPvPZMBuffZonesNum] = { 3521, 3607, 371 // linked when the central tower is controlled uint32 const ZM_GRAVEYARD_ZONE = 3521; -// linked when the central tower is controlled -uint32 const ZM_GRAVEYARD_ID = 969; - struct zm_beacon { int32 ui_tower_n; @@ -241,8 +238,6 @@ int32 OPvPCapturePointZM_Graveyard::HandleOpenGo(Player* player, GameObject* go) if (player->HasAura(ZM_BATTLE_STANDARD_A) && m_GraveyardState != ZM_GRAVEYARD_A) { m_GraveyardState = ZM_GRAVEYARD_A; - sObjectMgr->RemoveGraveyardLink(ZM_GRAVEYARD_ID, ZM_GRAVEYARD_ZONE, HORDE); // rem gy - sObjectMgr->AddGraveyardLink(ZM_GRAVEYARD_ID, ZM_GRAVEYARD_ZONE, ALLIANCE, false); // add gy m_PvP->TeamApplyBuff(TEAM_ALLIANCE, ZM_CAPTURE_BUFF); player->RemoveAurasDueToSpell(ZM_BATTLE_STANDARD_A); m_PvP->SendDefenseMessage(ZM_GRAVEYARD_ZONE, TEXT_TWIN_SPIRE_RUINS_TAKEN_ALLIANCE); @@ -250,8 +245,6 @@ int32 OPvPCapturePointZM_Graveyard::HandleOpenGo(Player* player, GameObject* go) else if (player->HasAura(ZM_BATTLE_STANDARD_H) && m_GraveyardState != ZM_GRAVEYARD_H) { m_GraveyardState = ZM_GRAVEYARD_H; - sObjectMgr->RemoveGraveyardLink(ZM_GRAVEYARD_ID, ZM_GRAVEYARD_ZONE, ALLIANCE); // rem gy - sObjectMgr->AddGraveyardLink(ZM_GRAVEYARD_ID, ZM_GRAVEYARD_ZONE, HORDE, false); // add gy m_PvP->TeamApplyBuff(TEAM_HORDE, ZM_CAPTURE_BUFF); player->RemoveAurasDueToSpell(ZM_BATTLE_STANDARD_H); m_PvP->SendDefenseMessage(ZM_GRAVEYARD_ZONE, TEXT_TWIN_SPIRE_RUINS_TAKEN_HORDE); |