Core/Scripts: Always run OnSpellClick AI hook, even if there are no spells defined for spellclick event.

This commit is contained in:
Shauren
2013-06-01 18:30:36 +02:00
parent 891d97ec4c
commit fb718d20aa
7 changed files with 20 additions and 12 deletions
+4 -1
View File
@@ -828,8 +828,11 @@ void SmartAI::sOnGameEvent(bool start, uint16 eventId)
GetScript()->ProcessEventsFor(start ? SMART_EVENT_GAME_EVENT_START : SMART_EVENT_GAME_EVENT_END, NULL, eventId);
}
void SmartAI::OnSpellClick(Unit* clicker)
void SmartAI::OnSpellClick(Unit* clicker, bool& result)
{
if (!result)
return;
GetScript()->ProcessEventsFor(SMART_EVENT_ON_SPELLCLICK, clicker);
}