OpenNos.GameObject.Character.IsBlockedByCharacter C# (CSharp) Method

IsBlockedByCharacter() public method

public IsBlockedByCharacter ( long characterId ) : bool
characterId long
return bool
        public bool IsBlockedByCharacter(long characterId)
        {
            ClientSession otherSession = ServerManager.Instance.GetSessionByCharacterId(characterId);
            if (otherSession != null)
            {
                return otherSession.Character.IsBlockingCharacter(CharacterId);
            }
            return DAOFactory.CharacterRelationDAO.GetBlacklisted(characterId).FirstOrDefault(b => b.RelatedCharacterId.Equals(CharacterId)) != null;
        }
Character