mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 15:40:45 +01:00
Scripts/Illidari Council: Changed urand to SelectRandomContainerElement
(cherry picked from commit 6cb754ca4e)
This commit is contained in:
@@ -128,7 +128,7 @@ static uint32 GetRandomBossExcept(uint32 exception)
|
||||
if (data != exception)
|
||||
bossData.emplace_back(data);
|
||||
|
||||
return bossData[urand(0, 2)];
|
||||
return Trinity::Containers::SelectRandomContainerElement(bossData);
|
||||
}
|
||||
|
||||
struct boss_illidari_council : public BossAI
|
||||
|
||||
Reference in New Issue
Block a user