예제 #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="bm"></param>
        /// <param name="chr"></param>
        public static void TalkToBattlemaster(this NPC bm, Character chr)
        {
            chr.OnInteract(bm);

            BattlegroundTemplate templ = bm.Entry.BattlegroundTemplate;

            if (templ != null)
            {
                GlobalBattlegroundQueue queue = templ.GetQueue(chr.Level);
                if (queue != null)
                {
                    BattlegroundHandler.SendBattlefieldList(chr, queue);
                }
            }
        }
예제 #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="bm"></param>
        /// <param name="chr"></param>
        public static void TalkToBattlemaster(this NPC bm, Character chr)
        {
            chr.OnInteract((WorldObject)bm);
            BattlegroundTemplate battlegroundTemplate = bm.Entry.BattlegroundTemplate;

            if (battlegroundTemplate == null)
            {
                return;
            }
            GlobalBattlegroundQueue queue = battlegroundTemplate.GetQueue(chr.Level);

            if (queue == null)
            {
                return;
            }
            BattlegroundHandler.SendBattlefieldList(chr, queue);
        }