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)
This commit is contained in:
hondacrx
2022-02-27 23:20:13 -05:00
parent f1cfc81fe6
commit 05c61d9bd5
+4
View File
@@ -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: