Merge pull request #17259 from SnapperRy/smart_ai

Core/SmartAI: Allow SMART_ACTION_FORCE_DESPAWN on no-SmartAI GameObjects
This commit is contained in:
jackpoz
2016-06-02 00:31:32 +02:00

View File

@@ -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;