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:
Tereneckla
2025-04-30 01:17:45 +00:00
committed by GitHub
parent 775b9ff29a
commit d8bc1d1797

View File

@@ -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());