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

This commit is contained in:
Gildor
2020-07-01 22:50:11 +02:00
committed by GitHub
parent 7a81ce2f21
commit af1571ce50

View File

@@ -3662,6 +3662,10 @@ bool _isPositiveEffectImpl(SpellInfo const* spellInfo, uint8 effIndex, std::unor
if (!_isPositiveTarget(spellInfo, effIndex) && bp > 0)
return false;
break;
case SPELL_AURA_MOD_HEALTH_REGEN_PERCENT: // check targets and basepoints (target enemy and negative bp -> negative)
if (!_isPositiveTarget(spellInfo, effIndex) && bp < 0)
return false;
break;
case SPELL_AURA_ADD_TARGET_TRIGGER:
return true;
case SPELL_AURA_PERIODIC_TRIGGER_SPELL_WITH_VALUE: