aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGildor <gildor55@gmail.com>2020-07-01 22:50:11 +0200
committerShauren <shauren.trinity@gmail.com>2022-01-21 16:12:31 +0100
commita16c804ea06ec6f8fbae701cf71e19201072478d (patch)
tree8cda0d6ecc192e17ecdf46211032bca3139917d3 /src
parentde21d446aac99b6d582acdad922d2c5ed0ada739 (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)
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Spells/SpellInfo.cpp4
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: