mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 18:10:26 +00:00
refactor(Core): rename namespaces and macros to acore (#2454)
This commit is contained in:
@@ -1067,7 +1067,7 @@ class spell_dru_starfall_dummy : public SpellScriptLoader
|
||||
|
||||
void FilterTargets(std::list<WorldObject*>& targets)
|
||||
{
|
||||
Trinity::Containers::RandomResizeList(targets, 2);
|
||||
acore::Containers::RandomResizeList(targets, 2);
|
||||
}
|
||||
|
||||
void HandleDummy(SpellEffIndex /*effIndex*/)
|
||||
@@ -1295,7 +1295,7 @@ class spell_dru_t10_restoration_4p_bonus : public SpellScriptLoader
|
||||
return;
|
||||
}
|
||||
|
||||
tempTargets.sort(Trinity::HealthPctOrderPred());
|
||||
tempTargets.sort(acore::HealthPctOrderPred());
|
||||
targets.clear();
|
||||
targets.push_back(tempTargets.front());
|
||||
}
|
||||
@@ -1332,13 +1332,13 @@ class spell_dru_wild_growth : public SpellScriptLoader
|
||||
|
||||
void FilterTargets(std::list<WorldObject*>& targets)
|
||||
{
|
||||
targets.remove_if(Trinity::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(Trinity::HealthPctOrderPred());
|
||||
targets.sort(acore::HealthPctOrderPred());
|
||||
targets.resize(maxTargets);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user