public long Hits() { var result = from skill in Skills from source in skill.Value select SkillsData.Hits(source, _target, skill.Key.Id, _timed, Type); return(result.Sum()); }
public long Hits(int skillId) { var result = from skill in Skills where skill.Key.Id == skillId from source in skill.Value select SkillsData.Hits(source, _target, skillId, _timed, skill.Key.NpcInfo, Type); return(result.Sum()); }