diff options
author | Gildor <gildor55@gmail.com> | 2020-07-01 22:50:11 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-01-21 16:12:31 +0100 |
commit | a16c804ea06ec6f8fbae701cf71e19201072478d (patch) | |
tree | 8cda0d6ecc192e17ecdf46211032bca3139917d3 | |
parent | de21d446aac99b6d582acdad922d2c5ed0ada739 (diff) |
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)
-rw-r--r-- | src/server/game/Spells/SpellInfo.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server/game/Spells/SpellInfo.cpp b/src/server/game/Spells/SpellInfo.cpp index 2581ef6e6d8..2be70977ad9 100644 --- a/src/server/game/Spells/SpellInfo.cpp +++ b/src/server/game/Spells/SpellInfo.cpp @@ -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: |