feat(Core/WorldObjects): implement Heartbeat timers (#20872)

This commit is contained in:
Grimdhex 2024-12-13 08:50:45 +01:00 committed by GitHub
parent 993bdcb84e
commit a4e2b1d743
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 26 additions and 10 deletions

View file

@ -446,6 +446,8 @@ bool GameObject::Create(ObjectGuid::LowType guidlow, uint32 name_id, Map* map, u
void GameObject::Update(uint32 diff)
{
WorldObject::Update(diff);
if (AI())
AI()->UpdateAI(diff);
else if (!AIM_Initialize())