mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-14 12:12:34 -04:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user