Permalink
Browse files

Core/SAI: Allow using SMART_TARGET_ACTION_INVOKER with SMART_ACTION_M…

…OVE_TO_POS

Signed-off-by: Subv <s.v.h21@hotmail.com>
  • Loading branch information...
1 parent d521d75 commit ac4536327f67161a54a6ed8b35408dbe3a5c7328 @Subv Subv committed Mar 22, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/server/game/AI/SmartScripts/SmartScript.cpp
@@ -1364,13 +1364,14 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
e.GetTargetType() == SMART_TARGET_CREATURE_DISTANCE || e.GetTargetType() == SMART_TARGET_GAMEOBJECT_RANGE ||
e.GetTargetType() == SMART_TARGET_GAMEOBJECT_GUID || e.GetTargetType() == SMART_TARGET_GAMEOBJECT_DISTANCE ||
e.GetTargetType() == SMART_TARGET_CLOSEST_CREATURE || e.GetTargetType() == SMART_TARGET_CLOSEST_GAMEOBJECT ||
- e.GetTargetType() == SMART_TARGET_OWNER_OR_SUMMONER)
+ e.GetTargetType() == SMART_TARGET_OWNER_OR_SUMMONER || e.GetTargetType() == SMART_TARGET_ACTION_INVOKER)
{
ObjectList* targets = GetTargets(e, unit);
if (!targets)
break;
target = targets->front();
+ delete targets;
}
if (!target)

0 comments on commit ac45363

Please sign in to comment.