feat(Core/Config): configurable BG Respawn Timers (#3569)

This commit is contained in:
aradep
2020-11-17 09:26:58 -04:00
committed by GitHub
parent 7f26c9ddad
commit 788f8b5257
6 changed files with 34 additions and 5 deletions

View File

@@ -729,7 +729,7 @@ void BattlegroundMgr::SendToBattleground(Player* player, uint32 instanceId, Batt
void BattlegroundMgr::SendAreaSpiritHealerQueryOpcode(Player* player, Battleground* bg, uint64 guid)
{
WorldPacket data(SMSG_AREA_SPIRIT_HEALER_TIME, 12);
uint32 time_ = 30000 - bg->GetLastResurrectTime(); // resurrect every 30 seconds
uint32 time_ = RESURRECTION_INTERVAL - bg->GetLastResurrectTime(); // resurrect every X seconds
if (time_ == uint32(-1))
time_ = 0;
data << guid << time_;