From a76bfe8544666be2e4309efa10548d886f502bab Mon Sep 17 00:00:00 2001 From: hondacrx Date: Wed, 24 Feb 2021 18:51:08 -0500 Subject: [PATCH] Core/Auras: Implemented SPELL_AURA_MOD_POWER_GAIN_PCT Port From (https://github.com/TrinityCore/TrinityCore/commit/03f1d3cedf66711ec375c421ddbb458a9992800b) --- Source/Game/Entities/StatSystem.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/Game/Entities/StatSystem.cs b/Source/Game/Entities/StatSystem.cs index 1fc05b283..368f93fcb 100644 --- a/Source/Game/Entities/StatSystem.cs +++ b/Source/Game/Entities/StatSystem.cs @@ -194,6 +194,9 @@ namespace Game.Entities if (dVal == 0) return 0; + if (dVal > 0) + dVal *= (int)GetTotalAuraMultiplierByMiscValue(AuraType.ModPowerGainPct, (int)power); + int curPower = GetPower(power); int val = (dVal + curPower);