public Attack GenerateAttack(IStatsVariables stats) { var damages = stats.GetDamageReferences() .Where(x => x.StatValue != 0) .Select(x => new Damage(x.StatType, x.StatValue)) .ToArray(); return(new Attack(damages)); }
public Attack GenerateAttack(IStatsVariables stats) { var damages = stats.GetDamageReferences() .Where(x => x.StatValue != 0) .Select(x => new Damage(x.StatType, x.StatValue)) .ToArray(); return(new Attack(damages)); }