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

(cherry picked from commit af1571ce50)
This commit is contained in:
Gildor
2020-07-01 22:50:11 +02:00
committed by Shauren
parent de21d446aa
commit a16c804ea0

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: