mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-05 12:03:48 +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)
|
void FilterTargets(std::list<WorldObject*>& targets)
|
||||||
{
|
{
|
||||||
uint32 const maxTargets = GetSpellInfo()->MaxAffectedTargets;
|
targets.remove(GetExplTargetUnit());
|
||||||
|
|
||||||
|
uint32 const maxTargets = GetSpellInfo()->MaxAffectedTargets;
|
||||||
if (targets.size() > maxTargets)
|
if (targets.size() > maxTargets)
|
||||||
{
|
{
|
||||||
targets.sort(Acore::HealthPctOrderPred());
|
targets.sort(Acore::HealthPctOrderPred());
|
||||||
|
|||||||
Reference in New Issue
Block a user