Exemplo n.º 1
0
        protected override void Initialize(Unit owner)
        {
            base.Initialize(owner);
            Character owner1 = (Character)owner;

            this.m_sendPackets = false;
            if (owner.Class != ClassId.Balista)
            {
                return;
            }
            this.m_runes = new RuneSet(owner1);
        }
Exemplo n.º 2
0
        protected override void Initialize(Unit owner)
        {
            base.Initialize(owner);

            var chr = (Character)owner;

            m_sendPackets = false;
            if (owner.Class == Constants.ClassId.DeathKnight)
            {
                m_runes = new RuneSet(chr);
            }
        }
Exemplo n.º 3
0
        protected internal override void Recycle()
        {
            base.Recycle();
            this.m_idCooldowns.Clear();
            this.m_categoryCooldowns.Clear();
            if (this.m_runes != null)
            {
                this.m_runes.Dispose();
                this.m_runes = (RuneSet)null;
            }

            PlayerSpellCollection.PlayerSpellCollectionPool.Recycle(this);
        }