From 05c61d9bd5239c1ed1446c873e85e7087ea1d323 Mon Sep 17 00:00:00 2001 From: hondacrx Date: Sun, 27 Feb 2022 23:20:13 -0500 Subject: [PATCH] Core/Spells: SPELL_AURA_MOD_HEALTH_REGEN_PERCENT should be negative if TargetType is enemy and Basepoints are negative Port From (https://github.com/TrinityCore/TrinityCore/commit/a16c804ea06ec6f8fbae701cf71e19201072478d) --- Source/Game/Spells/SpellInfo.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Game/Spells/SpellInfo.cs b/Source/Game/Spells/SpellInfo.cs index 9ca8ea7fc..4db7ff1ca 100644 --- a/Source/Game/Spells/SpellInfo.cs +++ b/Source/Game/Spells/SpellInfo.cs @@ -3557,6 +3557,10 @@ namespace Game.Spells if (!_isPositiveTarget(effect) && bp > 0) return false; break; + case AuraType.ModHealthRegenPercent: // check targets and basepoints (target enemy and negative bp -> negative) + if (!_isPositiveTarget(effect) && bp < 0) + return false; + break; case AuraType.AddTargetTrigger: return true; case AuraType.PeriodicTriggerSpellWithValue: