fix(Core/SAI): Remove Invoker in SMART_EVENT_EVENT_PHASE_CHANGE (#24051)
Co-authored-by: wetbrownsauce <you@example.com>
This commit is contained in:
parent
eff1b94669
commit
86d7488c02
1 changed files with 1 additions and 8 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue