mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-17 21:50:50 -04:00
Entities/GO: GameObjects now support (delayed) despawning in a reasonable manner. Closes #21406.
This commit is contained in:
@@ -1047,7 +1047,7 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
|
||||
creature->DespawnOrUnsummon(respawnDelay);
|
||||
}
|
||||
else if (GameObject* goTarget = target->ToGameObject())
|
||||
goTarget->SetRespawnTime(respawnDelay);
|
||||
goTarget->DespawnOrUnsummon(Milliseconds(respawnDelay));
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user