mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-26 07:06:23 +00:00
1st commit
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user