mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-28 08:06:23 +00:00
fix(Core/Battlegrounds): Delay a little bit relocation of dead players. (#9302)
Fixes #8958
This commit is contained in:
@@ -204,6 +204,8 @@ Battleground::Battleground()
|
||||
|
||||
Battleground::~Battleground()
|
||||
{
|
||||
_reviveEvents.KillAllEvents(false);
|
||||
|
||||
// remove objects and creatures
|
||||
// (this is done automatically in mapmanager update, when the instance is reset after the reset time)
|
||||
uint32 size = uint32(BgCreatures.size());
|
||||
@@ -325,6 +327,9 @@ inline void Battleground::_ProcessResurrect(uint32 diff)
|
||||
// *** BATTLEGROUND RESURRECTION SYSTEM ***
|
||||
// *********************************************************
|
||||
// this should be handled by spell system
|
||||
|
||||
_reviveEvents.Update(diff);
|
||||
|
||||
m_LastResurrectTime += diff;
|
||||
if (m_LastResurrectTime >= RESURRECTION_INTERVAL)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user