fix(Scripts/Spells): Warrior IntimidationShout (#20969)
This commit is contained in:
parent
6d88cd40f6
commit
92ef042f33
1 changed files with 5 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue