mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 09:17:36 +01:00
Core/Misc: Use std::chrono overload of Creature::DespawnOrUnsummon
This commit is contained in:
committed by
Peter Keresztes Schmidt
parent
d1a39a2ebf
commit
c39eb9b504
@@ -789,7 +789,7 @@ void Map::ScriptsProcess()
|
||||
case SCRIPT_COMMAND_DESPAWN_SELF:
|
||||
// First try with target or source creature, then with target or source gameobject
|
||||
if (Creature* cSource = _GetScriptCreatureSourceOrTarget(source, target, step.script, true))
|
||||
cSource->DespawnOrUnsummon(step.script->DespawnSelf.DespawnDelay);
|
||||
cSource->DespawnOrUnsummon(Milliseconds(step.script->DespawnSelf.DespawnDelay));
|
||||
else if (GameObject* goSource = _GetScriptGameObjectSourceOrTarget(source, target, step.script, true))
|
||||
goSource->DespawnOrUnsummon(Milliseconds(step.script->DespawnSelf.DespawnDelay));
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user