mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 10:00:28 +00:00
fix(Scripts/Spells): Warrior IntimidationShout (#20969)
This commit is contained in:
@@ -542,9 +542,12 @@ class spell_warr_intimidating_shout : public SpellScript
|
||||
{
|
||||
PrepareSpellScript(spell_warr_intimidating_shout);
|
||||
|
||||
void FilterTargets(std::list<WorldObject*>& unitList)
|
||||
void FilterTargets(std::list<WorldObject*>& targets)
|
||||
{
|
||||
unitList.remove(GetExplTargetWorldObject());
|
||||
targets.remove(GetExplTargetWorldObject());
|
||||
uint32 maxTargets = GetSpellInfo()->MaxAffectedTargets;
|
||||
if (targets.size() > maxTargets)
|
||||
targets.resize(maxTargets);
|
||||
}
|
||||
|
||||
void Register() override
|
||||
|
||||
Reference in New Issue
Block a user