1st commit

This commit is contained in:
UltraNix
2021-12-06 11:16:04 +01:00
parent 7b92ac90ae
commit 2cab3258bb
26 changed files with 557 additions and 19 deletions

View File

@@ -38,6 +38,10 @@
#include "Vehicle.h"
#include "WeatherMgr.h"
#ifdef PLAYERBOTS
#include "Playerbot.h"
#endif
// Zone Interval should be 1 second
constexpr auto ZONE_UPDATE_INTERVAL = 1000;
@@ -434,6 +438,18 @@ void Player::Update(uint32 p_time)
m_delayed_unit_relocation_timer = 0;
RemoveFromNotify(NOTIFY_VISIBILITY_CHANGED);
}
#ifdef PLAYERBOTS
if (_playerbotAI)
{
_playerbotAI->UpdateAI(p_time);
}
if (_playerbotMgr)
{
_playerbotMgr->UpdateAI(p_time);
}
#endif
}
void Player::UpdateMirrorTimers()