Core/Unit: rename & cleanup GetCreatePowers

Port From (https://github.com/TrinityCore/TrinityCore/commit/a8ec1ba9bc2d6d24407670159a765099f2a3004d)
This commit is contained in:
hondacrx
2021-11-23 21:26:01 -05:00
parent 044359a6b7
commit 501f280140
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -648,7 +648,7 @@ namespace Scripts.Spells.Druid
Unit caster = GetCaster();
if (caster)
amount = MathFunctions.CalculatePct(caster.GetCreatePowers(PowerType.Mana), amount) / (int)aurEff.GetTotalTicks();
amount = MathFunctions.CalculatePct(caster.GetCreatePowerValue(PowerType.Mana), amount) / (int)aurEff.GetTotalTicks();
else
amount = 0;
}