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); } }
protected override void OnTick() { 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); } }