Core/Spells: SPELL_AURA_MOD_ATTACK_POWER_PCT should be negative if TargetType or Basepoints are negative

Port From (https://github.com/TrinityCore/TrinityCore/commit/fc43a95729109286d8ce0e0ecf3a2c3dcdbe2d5b)
This commit is contained in:
hondacrx
2022-02-23 16:30:50 -05:00
parent 87bff09387
commit bbd45a1886
+1
View File
@@ -3528,6 +3528,7 @@ namespace Game.Spells
case AuraType.ModRangedAttackPower:
case AuraType.ModDamagePercentDone:
case AuraType.ModSpeedSlowAll:
case AuraType.ModAttackPowerPct:
if (!_isPositiveTarget(effect) || bp < 0)
return false;
break;