mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-18 14:10:18 -04:00
Core/SAI: Implement SMART_EVENT_ACTION_DONE (72, DoAction)
Param1 is event id This event is triggered on spellclick (id=1001), fall on ground (id=1002) and charge (id=1003) Signed-off-by: Nay <dnpd.dd@gmail.com>
This commit is contained in:
@@ -2778,6 +2778,12 @@ void SmartScript::ProcessEvent(SmartScriptHolder& e, Unit* unit, uint32 var0, ui
|
||||
ProcessAction(e, NULL, var0);
|
||||
break;
|
||||
}
|
||||
case SMART_EVENT_ACTION_DONE:
|
||||
{
|
||||
if (e.event.doAction.eventId != var0)
|
||||
return;
|
||||
ProcessAction(e, unit, var0);
|
||||
}
|
||||
default:
|
||||
sLog->outErrorDb("SmartScript::ProcessEvent: Unhandled Event type %u", e.GetEventType());
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user