mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 01:08:35 +00:00
fix(Core/SAI): Remove Invoker in SMART_EVENT_EVENT_PHASE_CHANGE (#24051)
Co-authored-by: wetbrownsauce <you@example.com>
This commit is contained in:
@@ -4500,14 +4500,7 @@ void SmartScript::ProcessEvent(SmartScriptHolder& e, Unit* unit, uint32 var0, ui
|
||||
if (!IsInPhase(e.event.eventPhaseChange.phasemask))
|
||||
return;
|
||||
|
||||
WorldObject* templastInvoker = GetLastInvoker();
|
||||
if (!templastInvoker)
|
||||
return;
|
||||
|
||||
if (!IsUnit(templastInvoker))
|
||||
return;
|
||||
|
||||
ProcessAction(e, templastInvoker->ToUnit());
|
||||
ProcessAction(e);
|
||||
break;
|
||||
}
|
||||
case SMART_EVENT_GAME_EVENT_START:
|
||||
|
||||
Reference in New Issue
Block a user