Core/AI: Added EventInform hook for GameObjectAI and implemented it in SAI
This commit is contained in:
1 parent
20b97b0119
commit
28f8e42a69
7 files changed
+53
-26
No files matched your search
@@ -1711,7 +1711,13 @@ bool GameObject::IsInRange(float x, float y, float z, float radius) const
|
||||
|
||||
void GameObject::EventInform(uint32 eventId)
|
||||
{
|
||||
if (eventId && m_zoneScript)
|
||||
if (!eventId)
|
||||
return;
|
||||
|
||||
if (AI())
|
||||
AI()->EventInform(eventId);
|
||||
|
||||
if (m_zoneScript)
|
||||
m_zoneScript->ProcessEvent(this, eventId);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user