fix(Script/Spell) exclude original target from glyph of holy light (#22002)
Glyph of Holy Light no longer applies (10%) to the target
This commit is contained in:
parent
775b9ff29a
commit
d8bc1d1797
1 changed files with 2 additions and 1 deletions
|
|
@ -679,8 +679,9 @@ class spell_pal_glyph_of_holy_light : public SpellScript
|
|||
|
||||
void FilterTargets(std::list<WorldObject*>& targets)
|
||||
{
|
||||
uint32 const maxTargets = GetSpellInfo()->MaxAffectedTargets;
|
||||
targets.remove(GetExplTargetUnit());
|
||||
|
||||
uint32 const maxTargets = GetSpellInfo()->MaxAffectedTargets;
|
||||
if (targets.size() > maxTargets)
|
||||
{
|
||||
targets.sort(Acore::HealthPctOrderPred());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue