From f097e341f5afcac2dd0ae9dbb265201c0de2a934 Mon Sep 17 00:00:00 2001 From: Shauren Date: Thu, 23 Mar 2017 00:11:58 +0100 Subject: Core/Utilities: Rename RandomResizeList->RandomResize as it is no longer restricted to a list * Also fix gcc build --- .../scripts/EasternKingdoms/BaradinHold/boss_pit_lord_argaloth.cpp | 2 +- src/server/scripts/EasternKingdoms/Karazhan/boss_moroes.cpp | 2 +- src/server/scripts/EasternKingdoms/ZulGurub/boss_mandokir.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/server/scripts/EasternKingdoms') diff --git a/src/server/scripts/EasternKingdoms/BaradinHold/boss_pit_lord_argaloth.cpp b/src/server/scripts/EasternKingdoms/BaradinHold/boss_pit_lord_argaloth.cpp index aad8bd97964..cc6f2a3c88c 100644 --- a/src/server/scripts/EasternKingdoms/BaradinHold/boss_pit_lord_argaloth.cpp +++ b/src/server/scripts/EasternKingdoms/BaradinHold/boss_pit_lord_argaloth.cpp @@ -132,7 +132,7 @@ class spell_argaloth_consuming_darkness : public SpellScriptLoader void FilterTargets(std::list& targets) { - Trinity::Containers::RandomResizeList(targets, GetCaster()->GetMap()->Is25ManRaid() ? 8 : 3); + Trinity::Containers::RandomResize(targets, GetCaster()->GetMap()->Is25ManRaid() ? 8 : 3); } void Register() override diff --git a/src/server/scripts/EasternKingdoms/Karazhan/boss_moroes.cpp b/src/server/scripts/EasternKingdoms/Karazhan/boss_moroes.cpp index 90cb19fb736..dd64f3dcf9e 100644 --- a/src/server/scripts/EasternKingdoms/Karazhan/boss_moroes.cpp +++ b/src/server/scripts/EasternKingdoms/Karazhan/boss_moroes.cpp @@ -190,7 +190,7 @@ public: for (uint8 i = 0; i < 6; ++i) AddList.push_back(Adds[i]); - Trinity::Containers::RandomResizeList(AddList, 4); + Trinity::Containers::RandomResize(AddList, 4); uint8 i = 0; for (std::list::const_iterator itr = AddList.begin(); itr != AddList.end() && i < 4; ++itr, ++i) diff --git a/src/server/scripts/EasternKingdoms/ZulGurub/boss_mandokir.cpp b/src/server/scripts/EasternKingdoms/ZulGurub/boss_mandokir.cpp index f3597815cf7..535095ec64f 100644 --- a/src/server/scripts/EasternKingdoms/ZulGurub/boss_mandokir.cpp +++ b/src/server/scripts/EasternKingdoms/ZulGurub/boss_mandokir.cpp @@ -194,7 +194,7 @@ class boss_mandokir : public CreatureScript GetCreatureListWithEntryInGrid(creatures, me, NPC_CHAINED_SPIRIT, 200.0f); creatures.remove_if(Trinity::AnyDeadUnitCheck()); creatures.remove_if(Trinity::UnitAuraCheck(true, SPELL_OHGAN_ORDERS_TRIGGER)); - Trinity::Containers::RandomResizeList(creatures, 1); + Trinity::Containers::RandomResize(creatures, 1); if (creatures.empty()) return; -- cgit v1.2.3