예제 #1
0
파일: BaseMount.cs 프로젝트: ggobbe/aube-uo
        public static BlockMountType GetMountPrevention(Mobile mob, BaseMount mount)
        {
            if (mob == null)
            {
                return(BlockMountType.None);
            }

            BlockEntry entry = null;

            if (m_Table.ContainsKey(mob))
            {
                entry = m_Table[mob];
            }

            if (entry == null)
            {
                return(BlockMountType.None);
            }

            if (entry.IsExpired(mount))
            {
                return(BlockMountType.None);
            }

            if (Core.TOL && entry.m_Type >= BlockMountType.RidingSwipe && entry.m_Expiration > DateTime.UtcNow)
            {
                return(BlockMountType.DismountRecovery);
            }

            return(entry.m_Type);
        }
예제 #2
0
파일: BaseMount.cs 프로젝트: pallop/Servuo
        public static BlockMountType GetMountPrevention(Mobile mob, BaseMount mount)
        {
            if (mob == null)
            {
                return(BlockMountType.None);
            }

            BlockEntry entry = null;

            if (m_Table.ContainsKey(mob))
            {
                entry = m_Table[mob];
            }

            if (entry == null)
            {
                return(BlockMountType.None);
            }

            if (entry.IsExpired(mount))
            {
                return(BlockMountType.None);
            }

            return(entry.m_Type);
        }