Core/Unit: rename & cleanup GetCreatePowers
Port From (https://github.com/TrinityCore/TrinityCore/commit/a8ec1ba9bc2d6d24407670159a765099f2a3004d)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user