mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 15:58:04 +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);
|
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
|
void Register() override
|
||||||
|
|||||||
Reference in New Issue
Block a user