Ejemplo n.º 1
0
        protected virtual void BeginTimer()
        {
            if (Timer != null)
            {
                Timer.Stop();
                Timer = null;
            }

            Timer = new UpkeepTimer(this);
            Timer.Start();

            if (Expires < DateTime.UtcNow)
            {
                Expires = DateTime.UtcNow + ExpirationPeriod;
            }

            AddToTable(Caster, this);
            AddStatMods();

            if (RevealOnTick)
            {
                Caster.RevealingAction();
            }

            Caster.Delta(MobileDelta.WeaponDamage);

            if (Target != null)
            {
                Target.Delta(MobileDelta.WeaponDamage);
            }

            if (PartyList != null)
            {
                foreach (Mobile m in PartyList)
                {
                    m.Delta(MobileDelta.WeaponDamage);
                }
            }
        }
Ejemplo n.º 2
0
        protected virtual void BeginTimer()
        {
            if (Timer != null)
            {
                Timer.Stop();
                Timer = null;
            }

            Timer = new UpkeepTimer(this);
            Timer.Start();

            if (Expires < DateTime.UtcNow)
            {
                Expires = DateTime.UtcNow + ExpirationPeriod;
            }

            AddToTable(Caster, this);
            AddStatMods();

            if (RevealOnTick)
            {
                Caster.RevealingAction();
            }

            Caster.Delta(MobileDelta.WeaponDamage);

            Target?.Delta(MobileDelta.WeaponDamage);

            if (PartyList != null)
            {
                for (var index = 0; index < PartyList.Count; index++)
                {
                    Mobile m = PartyList[index];

                    m.Delta(MobileDelta.WeaponDamage);
                }
            }
        }