Core/Spells: Fixed SPELL_AURA_MOD_INCREASE_ENERGY_PERCENT

This commit is contained in:
hondacrx
2017-12-30 16:49:45 -05:00
parent 523a61b8ca
commit e7565adaf7
2 changed files with 12 additions and 30 deletions
+2 -8
View File
@@ -121,15 +121,9 @@ namespace Game.Entities
return true;
}
int GetMinPower(PowerType power) { return power == PowerType.LunarPower ? -100 : 0; }
// returns negative amount on power reduction
public int ModifyPowerPct(PowerType power, float pct, bool apply)
{
float amount = GetMaxPower(power);
MathFunctions.ApplyPercentModFloatVar(ref amount, pct, apply);
return ModifyPower(power, (int)amount - GetMaxPower(power));
}
int GetMinPower(PowerType power) { return power == PowerType.LunarPower ? -100 : 0; }
// returns negative amount on power reduction
public int ModifyPower(PowerType power, int dVal)
{