public TransformTimer(Mobile from, TransformationSpell spell) : base(TimeSpan.FromSeconds(spell.TickRate), TimeSpan.FromSeconds(spell.TickRate))
        {
            m_Mobile = from;
            m_Spell  = spell;

            Priority = TimerPriority.TwoFiftyMS;
        }
 protected override void OnTick()
 {
     if (m_Mobile.Deleted || !m_Mobile.Alive || m_Mobile.Body != m_Spell.Body || m_Mobile.Hue != m_Spell.Hue)
     {
         TransformationSpell.RemoveContext(m_Mobile, true);
         Stop();
     }
     else
     {
         m_Spell.OnTick(m_Mobile);
     }
 }
Пример #3
0
        protected override void OnTick()
        {
            if (m_Mobile.Skills[m_Spell.CastSkill].Value < m_Spell.RequiredSkill)
            {
                m_Mobile.SendLocalizedMessage(1071176);                   // You can't maintain your special form anymore.

                TransformationSpell.RemoveContext(m_Mobile, true);
                Stop();
            }
            else if (m_Mobile.Deleted || !m_Mobile.Alive || m_Mobile.Body != m_Spell.Body || m_Mobile.Hue != m_Spell.Hue && !Mephitis.UnderWebEffect(m_Mobile))
            {
                TransformationSpell.RemoveContext(m_Mobile, true);
                Stop();
            }
            else
            {
                m_Spell.OnTick(m_Mobile);
            }
        }
		public TransformTimer( Mobile from, TransformationSpell spell ) : base( TimeSpan.FromSeconds( spell.TickRate ), TimeSpan.FromSeconds( spell.TickRate ) )
		{
			m_Mobile = from;
			m_Spell = spell;

			Priority = TimerPriority.TwoFiftyMS;
		}
Пример #5
0
 public TransformTimer(Mobile from, TransformationSpell spell)
     : base(TimeSpan.FromSeconds(spell.TickRate), TimeSpan.FromSeconds(spell.TickRate))
 {
     m_Mobile = from;
     m_Spell  = spell;
 }
Пример #6
0
 public static void RemoveEffect(Mobile m)
 {
     TransformationSpell.RemoveContext(m, true);
 }
Пример #7
0
 public static bool UnderEffect(Mobile m)
 {
     return(TransformationSpell.UnderTransformation(m, typeof(VampiricEmbraceSpell)));
 }
Пример #8
0
        public static void RemoveEffect(Mobile m)
        {
            TransformationSpell.RemoveContext(m, true);

            m.Delta(MobileDelta.Flags);
        }
Пример #9
0
 public static bool UnderEffect(Mobile m)
 {
     return(TransformationSpell.UnderTransformation(m, typeof(WraithFormSpell)));
 }
Пример #10
0
 public TransformTimer( Mobile from, TransformationSpell spell )
     : base(TimeSpan.FromSeconds( spell.TickRate ), TimeSpan.FromSeconds( spell.TickRate ))
 {
     m_Mobile = from;
     m_Spell = spell;
 }
Пример #11
0
 public static bool UnderEffect(Mobile m)
 {
     return(TransformationSpell.UnderTransformation(m, typeof(HorrificBeastSpell)));
 }