Esempio n. 1
0
 private void TriggerSpell(WorldObject owner)
 {
     timer = null;
     SpellCast.ValidateAndTriggerNew(m_spellEffect.TriggerSpell, m_aura.CasterReference, Owner,
                                     Owner, m_aura.Controller as SpellChannel, m_aura.UsedItem,
                                     null, null);
 }
Esempio n. 2
0
 private void TriggerSpell(WorldObject owner)
 {
     this.timer = (OneShotObjectUpdateTimer)null;
     SpellCast.ValidateAndTriggerNew(this.m_spellEffect.TriggerSpell, this.m_aura.CasterReference, this.Owner,
                                     (WorldObject)this.Owner, this.m_aura.Controller as SpellChannel, this.m_aura.UsedItem,
                                     (IUnitAction)null, (SpellEffect)null);
 }
Esempio n. 3
0
        /// <summary>
        /// Picks up this side's flag.
        /// </summary>
        /// <param name="chr">The character picking up the flag.</param>
        public void PickupFlag(Character chr)
        {
            FlagCarrier = chr;

            // Shows the flag on the character. Does all kinds of stuff in the handler.
            chr.Auras.CreateSelf(_flagSpell, true);
            m_DebuffObjectUpdate = chr.CallDelayed(_flagRespawnTime, obj => ApplyFlagCarrierDebuff());

            if (_flag != null)
            {
                _flag.SendDespawn();                 // Dispose of the GO.
                _flag.Delete();
                _flag = null;
            }

            _flagPickUpTime = DateTime.Now;
            _isFlagHome     = false;

            Instance.Characters.SendSystemMessage(DefaultAddonLocalizer.Instance.GetTranslations(AddonMsgKey.WSPickupFlag),
                                                  Name, chr.Name);
            var evt = FlagPickedUp;

            if (evt != null)
            {
                evt(chr);
            }
        }
Esempio n. 4
0
 protected override void Apply()
 {
     timer = Owner.CallDelayed(EffectValue, TriggerSpell);
 }
Esempio n. 5
0
 protected override void Apply()
 {
     this.timer = this.Owner.CallDelayed(this.EffectValue, new Action <WorldObject>(this.TriggerSpell));
 }