Core/Spells: SPELL_AURA_MOD_HEALTH_REGEN_PERCENT should be negative if TargetType is enemy and Basepoints are negative (#24902)

(cherry picked from commit af1571ce508379895fb4f8f4fbcaccf7c5dbd156)
This commit is contained in:
Gildor
2022-01-21 16:12:31 +01:00
committed by Shauren
parent de21d446aa
commit a16c804ea0
+4
View File
@@ -4616,6 +4616,10 @@ bool _isPositiveEffectImpl(SpellInfo const* spellInfo, SpellEffectInfo const& ef
if (!_isPositiveTarget(effect) && bp > 0)
return false;
break;
case SPELL_AURA_MOD_HEALTH_REGEN_PERCENT: // check targets and basepoints (target enemy and negative bp -> negative)
if (!_isPositiveTarget(effect) && bp < 0)
return false;
break;
case SPELL_AURA_ADD_TARGET_TRIGGER:
return true;
case SPELL_AURA_PERIODIC_TRIGGER_SPELL_WITH_VALUE: