Core/SmartAI: Allow SMART_ACTION_FORCE_DESPAWN on no-SmartAI GameObjects
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user