mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 18:10:26 +00:00
refactor(Core/Misc): acore to Acore (#6043)
This commit is contained in:
@@ -1050,7 +1050,7 @@ public:
|
||||
|
||||
void FilterTargets(std::list<WorldObject*>& targets)
|
||||
{
|
||||
acore::Containers::RandomResize(targets, 2);
|
||||
Acore::Containers::RandomResize(targets, 2);
|
||||
}
|
||||
|
||||
void HandleDummy(SpellEffIndex /*effIndex*/)
|
||||
@@ -1276,7 +1276,7 @@ public:
|
||||
return;
|
||||
}
|
||||
|
||||
tempTargets.sort(acore::HealthPctOrderPred());
|
||||
tempTargets.sort(Acore::HealthPctOrderPred());
|
||||
targets.clear();
|
||||
targets.push_back(tempTargets.front());
|
||||
}
|
||||
@@ -1313,13 +1313,13 @@ public:
|
||||
|
||||
void FilterTargets(std::list<WorldObject*>& targets)
|
||||
{
|
||||
targets.remove_if(acore::RaidCheck(GetCaster(), false));
|
||||
targets.remove_if(Acore::RaidCheck(GetCaster(), false));
|
||||
|
||||
uint32 const maxTargets = GetCaster()->HasAura(SPELL_DRUID_GLYPH_OF_WILD_GROWTH) ? 6 : 5;
|
||||
|
||||
if (targets.size() > maxTargets)
|
||||
{
|
||||
targets.sort(acore::HealthPctOrderPred());
|
||||
targets.sort(Acore::HealthPctOrderPred());
|
||||
targets.resize(maxTargets);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user