/// <summary> /// This Method will return all skills that are assail-like, Assail, Clobber, Ect. /// </summary> public Skill[] GetAssails(SkillScope scope) { if ((scope & SkillScope.Assail) == SkillScope.Assail) { return(SkillBook.Get(i => i != null && i.Template != null && i.Template.Type == SkillScope.Assail).ToArray()); } return(null); }
public bool HasSkill <T>(SkillScope scope) where T : Template, new() { var obj = new T(); if (obj is SkillTemplate) { if ((scope & SkillScope.Assail) == SkillScope.Assail) { return(SkillBook.Get(i => i != null && i.Template != null && i.Template.Type == SkillScope.Assail).Length > 0); } } return(false); }
public bool HasSkill <T>(SkillScope scope) where T : Template, new() { var obj = new T(); if (obj is SkillTemplate) { // ReSharper disable once NonConstantEqualityExpressionHasConstantResult if ((scope & SkillScope.Assail) == SkillScope.Assail) { return(SkillBook.Get(i => i != null && i.Template != null && i.Template.Type == SkillScope.Assail).Length > 0); } } return(false); }
public Skill[] GetAssails() { return(SkillBook.Get(i => i != null && i.Template != null && i.Template.Type == SkillScope.Assail).ToArray()); }