Core/Auras: Implemented SPELL_AURA_MOD_POWER_GAIN_PCT

Port From (https://github.com/TrinityCore/TrinityCore/commit/03f1d3cedf66711ec375c421ddbb458a9992800b)
This commit is contained in:
hondacrx
2021-02-24 18:51:08 -05:00
parent d1485ad482
commit a76bfe8544
+3
View File
@@ -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);