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

This commit is contained in:
Shauren
2012-06-11 11:10:46 +02:00
parent 20b97b0119
commit 28f8e42a69
7 changed files with 53 additions and 26 deletions

View File

@@ -2771,6 +2771,13 @@ void SmartScript::ProcessEvent(SmartScriptHolder& e, Unit* unit, uint32 var0, ui
ProcessAction(e, unit, var0, var1);
break;
}
case SMART_EVENT_GO_EVENT_INFORM:
{
if (e.event.eventInform.eventId != var0)
return;
ProcessAction(e, NULL, var0);
break;
}
default:
sLog->outErrorDb("SmartScript::ProcessEvent: Unhandled Event type %u", e.GetEventType());
break;