mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/SAI: SMART_EVENT_IC_LOS is now called when movement in LOS was made while the creature was in combat
This commit is contained in:
@@ -3462,16 +3462,10 @@ void SmartScript::OnInitialize(WorldObject* obj, AreaTriggerEntry const* at)
|
||||
|
||||
void SmartScript::OnMoveInLineOfSight(Unit* who)
|
||||
{
|
||||
ProcessEventsFor(SMART_EVENT_OOC_LOS, who);
|
||||
|
||||
if (!me)
|
||||
return;
|
||||
|
||||
if (me->GetVictim())
|
||||
return;
|
||||
|
||||
ProcessEventsFor(SMART_EVENT_IC_LOS, who);
|
||||
|
||||
ProcessEventsFor(me->IsInCombat() ? SMART_EVENT_IC_LOS : SMART_EVENT_OOC_LOS, who);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user