Core/SmartAI: remove unneeded check for SMART_ACTION_FORCE_DESPAWN.

Gameobjects do not need to use SmartAI in order to be targeted by other entities' scripts.

(cherry picked from commit 9803e58392)
This commit is contained in:
Snapper
2016-06-01 13:41:58 +02:00
committed by joschiwald
parent fcabeed754
commit fbb9fc0228

View File

@@ -1059,10 +1059,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;