Exemplo n.º 1
0
 public static KeyValuePair <DamageElement, MinMaxFloat> GetDamageAmount(this Skill skill, short level, ICharacterData character)
 {
     if (!skill.IsAttack() || skill.skillAttackType != SkillAttackType.Normal)
     {
         return(new KeyValuePair <DamageElement, MinMaxFloat>());
     }
     return(GameDataHelpers.MakeDamage(skill.damageAmount, level, 1f, skill.GetEffectivenessDamage(character)));
 }