mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 09:17:18 +00:00
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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user