Exemple #1
0
 private static float CalcMagicDamage(Unit unit, float dmg)
 {
     return(UnitUpdates.GetMultiMod(unit.FloatMods[11],
                                    dmg + (float)unit.IntMods[24] +
                                    CharacterFormulas.CalculateMagicDamageBonus(unit.Level, unit.Class, unit.Asda2Intellect)));
 }
Exemple #2
0
 private static float CalcMagicDamage(Unit unit, float dmg)
 {
     return(GetMultiMod(unit.FloatMods[(int)StatModifierFloat.MagicDamage], dmg + unit.IntMods[(int)StatModifierInt.MagicDamage] + CharacterFormulas.CalculateMagicDamageBonus(unit.Level, unit.Class, unit.Asda2Intellect)));
 }