diff options
author | Jeremy <Golrag@users.noreply.github.com> | 2023-05-09 05:20:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-09 05:20:35 +0200 |
commit | 205aba1ff3a6f1ff92a8b26af646fd25f139c697 (patch) | |
tree | a2273ad956ee236dd4044d114759d9e24211468c /src/server/game/Battlegrounds/Battleground.h | |
parent | dc284750968d1816cc4271f4c6a6dbcdcdfd3f51 (diff) |
Core/Battlegrounds: Moved AreaSpiritHealer resurrection handling to respective npc flags (#28508)
* UNIT_NPC_FLAG_AREA_SPIRIT_HEALER
* UNIT_NPC_FLAG_2_AREA_SPIRIT_HEALER_INDIVIDUAL
Diffstat (limited to 'src/server/game/Battlegrounds/Battleground.h')
-rw-r--r-- | src/server/game/Battlegrounds/Battleground.h | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/src/server/game/Battlegrounds/Battleground.h b/src/server/game/Battlegrounds/Battleground.h index 5cb8976422d..bfa4cec6dbe 100644 --- a/src/server/game/Battlegrounds/Battleground.h +++ b/src/server/game/Battlegrounds/Battleground.h @@ -96,8 +96,10 @@ enum BattlegroundCreatures enum BattlegroundSpells { + SPELL_SPIRIT_HEAL_CHANNEL_AOE = 22011, // used for AoE resurrections + SPELL_SPIRIT_HEAL_PLAYER_AURA = 156758, // individual player timers for resurrection + SPELL_SPIRIT_HEAL_CHANNEL_SELF = 305122, // channel visual for individual area spirit healers SPELL_WAITING_FOR_RESURRECT = 2584, // Waiting to Resurrect - SPELL_SPIRIT_HEAL_CHANNEL = 22011, // Spirit Heal Channel VISUAL_SPIRIT_HEAL_CHANNEL = 3060, SPELL_SPIRIT_HEAL = 22012, // Spirit Heal SPELL_RESURRECTION_VISUAL = 24171, // Resurrection Impact Visual @@ -115,6 +117,7 @@ enum BattlegroundSpells SPELL_MERCENARY_ALLIANCE_1 = 193863, SPELL_MERCENARY_ALLIANCE_REACTIONS = 195843, SPELL_MERCENARY_SHAPESHIFT = 193970, + SPELL_PET_SUMMONED = 6962 // used after resurrection }; enum BattlegroundTimeIntervals @@ -286,7 +289,6 @@ class TC_GAME_API Battleground : public ZoneScript uint32 GetClientInstanceID() const { return m_ClientInstanceID; } uint32 GetElapsedTime() const { return m_StartTime; } uint32 GetRemainingTime() const { return m_EndTime; } - uint32 GetLastResurrectTime() const { return m_LastResurrectTime; } uint32 GetMaxPlayers() const; uint32 GetMinPlayers() const; @@ -313,7 +315,6 @@ class TC_GAME_API Battleground : public ZoneScript void SetClientInstanceID(uint32 InstanceID) { m_ClientInstanceID = InstanceID; } void SetElapsedTime(uint32 Time) { m_StartTime = Time; } void SetRemainingTime(uint32 Time) { m_EndTime = Time; } - void SetLastResurrectTime(uint32 Time) { m_LastResurrectTime = Time; } void SetRated(bool state) { m_IsRated = state; } void SetArenaType(uint8 type) { m_ArenaType = type; } void SetWinner(PvPTeamId winnerTeamId) { _winnerTeamId = winnerTeamId; } @@ -343,14 +344,6 @@ class TC_GAME_API Battleground : public ZoneScript typedef std::map<ObjectGuid, BattlegroundScore*> BattlegroundScoreMap; uint32 GetPlayerScoresSize() const { return uint32(PlayerScores.size()); } - uint32 GetReviveQueueSize() const { return uint32(m_ReviveQueue.size()); } - - void AddPlayerToResurrectQueue(ObjectGuid npc_guid, ObjectGuid player_guid); - void RemovePlayerFromResurrectQueue(ObjectGuid player_guid); - - /// Relocate all players in ReviveQueue to the closest graveyard - void RelocateDeadPlayers(ObjectGuid guideGuid); - void StartBattleground(); GameObject* GetBGObject(uint32 type, bool logError = true); @@ -543,7 +536,6 @@ class TC_GAME_API Battleground : public ZoneScript virtual void PostUpdateImpl(uint32 /* diff */) { } void _ProcessOfflineQueue(); - void _ProcessResurrect(uint32 diff); void _ProcessProgress(uint32 diff); void _ProcessLeave(uint32 diff); void _ProcessJoin(uint32 diff); @@ -584,7 +576,6 @@ class TC_GAME_API Battleground : public ZoneScript uint32 m_ResetStatTimer; uint32 m_ValidStartPositionTimer; int32 m_EndTime; // it is set to 120000 when bg is ending and it decreases itself - uint32 m_LastResurrectTime; uint8 m_ArenaType; // 2=2v2, 3=3v3, 5=5v5 bool m_InBGFreeSlotQueue; // used to make sure that BG is only once inserted into the BattlegroundMgr.BGFreeSlotQueue[bgTypeId] deque bool m_SetDeleteThis; // used for safe deletion of the bg after end / all players leave @@ -597,7 +588,6 @@ class TC_GAME_API Battleground : public ZoneScript uint32 m_LastPlayerPositionBroadcast; // Player lists - GuidVector m_ResurrectQueue; // Player GUID std::deque<ObjectGuid> m_OfflineQueue; // Player GUID // Invited counters are useful for player invitation to BG - do not allow, if BG is started to one faction to have 2 more players than another faction |