fix(Core/SAI): Remove Invoker in SMART_EVENT_EVENT_PHASE_CHANGE (#24051)

Co-authored-by: wetbrownsauce <you@example.com>
This commit is contained in:
Vanna White
2025-12-10 16:20:46 -07:00
committed by GitHub
parent eff1b94669
commit 86d7488c02

View File

@@ -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: