/// <summary> /// Determines if class has special ability. /// </summary> /// <param name="flags">SpecialAbilityFlags to test.</param> /// <returns>True if has special ability.</returns> bool HasSpecialAbility(CFGData cfg, SpecialAbilityFlags flags) { return(((cfg.AbilityFlagsAndSpellPointsBitfield & (byte)flags) == (byte)flags) ? true : false); }
/// <summary> /// Determines if class has special ability. /// </summary> /// <param name="flags">SpecialAbilityFlags to test.</param> /// <returns>True if has special ability.</returns> bool HasSpecialAbility(CFGData cfg, SpecialAbilityFlags flags) { return ((cfg.AbilityFlagsAndSpellPointsBitfield & (byte)flags) == (byte)flags) ? true : false; }