Core/AI: Added EventInform hook for GameObjectAI and implemented it in SAI

This commit is contained in:
Shauren committed 2012-06-11 11:10:46 +02:00
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);
}