Core/SmartAI: Allow SMART_ACTION_FORCE_DESPAWN on no-SmartAI GameObjects

This commit is contained in:
Aokromes committed 2016-07-20 15:33:33 +02:00
1 parent 7b6db29f35
commit d59e84fcb2
1 file changed
+1 -4
@@ -1037,10 +1037,7 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
target->DespawnOrUnsummon(e.action.forceDespawn.delay);
}
else if (GameObject* goTarget = (*itr)->ToGameObject())
{
if (IsSmartGO(goTarget))
goTarget->SetRespawnTime(e.action.forceDespawn.delay + 1);
}
goTarget->SetRespawnTime(e.action.forceDespawn.delay + 1);
}
delete targets;