aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGildor <gildor55@gmail.com>2020-07-01 22:50:11 +0200
committerGitHub <noreply@github.com>2020-07-01 22:50:11 +0200
commitaf1571ce508379895fb4f8f4fbcaccf7c5dbd156 (patch)
tree4a017d7e9dbfa3aa2398c6bece14eaa7c6cb529d /src
parent7a81ce2f21d5823cfa872cdef8fc880f2c81f94c (diff)
Core/Spells: SPELL_AURA_MOD_HEALTH_REGEN_PERCENT should be negative if TargetType is enemy and Basepoints are negative (#24902)
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 1446902f8ce..a489ff9b60b 100644
--- a/src/server/game/Spells/SpellInfo.cpp
+++ b/src/server/game/Spells/SpellInfo.cpp
@@ -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: