Пример #1
0
        public bool HasLowerSecurity(Player target, ulong guid, bool strong = false)
        {
            WorldSession target_session = null;
            uint         target_account = 0;

            if (target != null)
            {
                target_session = target.GetSession();
            }
            else if (guid != 0)
            {
                target_account = ObjMgr.GetPlayerAccountIdByGUID(guid);
            }

            if (target_session == null && target_account == 0)
            {
                SendSysMessage(CypherStrings.PlayerNotFound);
                SetSentErrorMessage(true);
                return(true);
            }

            return(HasLowerSecurityAccount(target_session, target_account, strong));
        }