Core/Spells: only apply aura effects when needed. Fixes #21602

(cherry picked from commit abb602f7c12b00480899d245ad81abdf41f39621)
This commit is contained in:
ariel-
2021-09-06 20:10:16 +02:00
committed by Shauren
parent 071d112ed1
commit 5491b7f89f
+2 -1
View File
@@ -2656,7 +2656,8 @@ void Spell::TargetInfo::DoDamageAndTriggers(Spell* spell)
if ((effMask & (1 << i)) && aurApp->HasEffect(i))
effMask &= ~(1 << i);
_spellHitTarget->_ApplyAura(aurApp, effMask);
if (effMask)
_spellHitTarget->_ApplyAura(aurApp, effMask);
}
}