Core/SAI: Fix SMART_ACTION_MOVE_OFFSET after 4887e0ea1d
This commit is contained in:
@@ -1180,7 +1180,7 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
|
|||||||
for (WorldObject* target : targets)
|
for (WorldObject* target : targets)
|
||||||
{
|
{
|
||||||
Creature* creatureTarget = target->ToCreature();
|
Creature* creatureTarget = target->ToCreature();
|
||||||
if (creatureTarget)
|
if (!creatureTarget)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (!(e.event.event_flags & SMART_EVENT_FLAG_WHILE_CHARMED) && creatureTarget->IsCharmed())
|
if (!(e.event.event_flags & SMART_EVENT_FLAG_WHILE_CHARMED) && creatureTarget->IsCharmed())
|
||||||
|
|||||||
Reference in New Issue
Block a user