Esempio n. 1
0
 public bool CanRecall(Account targetAccount, RoleType roleType)
 {
     if (targetAccount.AccountID != AccountID && targetAccount.FactionID == FactionID &&
         (!roleType.IsClanOnly || targetAccount.ClanID == ClanID))
     {
         return
             (AccountRolesByAccountID.Any(
                  x => x.RoleType.RoleTypeHierarchiesByMasterRoleTypeID.Any(y => y.CanRecall && y.SlaveRoleTypeID == roleType.RoleTypeID)));
     }
     else
     {
         return(false);
     }
 }