Server.Spells.Sixth.ParalyzeFieldSpell.InternalItem.OnMoveOver C# (CSharp) Method

OnMoveOver() public method

public OnMoveOver ( Mobile m ) : bool
m Mobile
return bool
			public override bool OnMoveOver( Mobile m )
			{
				if ( Visible && m_Caster != null && SpellHelper.ValidIndirectTarget( m_Caster, m ) && m_Caster.CanBeHarmful( m, false ) )
				{
					if ( SpellHelper.CanRevealCaster( m ) )
						m_Caster.RevealingAction();

					m_Caster.DoHarmful( m );

					double duration = 7.0 + (m_Caster.Skills[SkillName.Magery].Value * 0.2);

					m.Paralyze( TimeSpan.FromSeconds( duration ) );

					m.PlaySound( 0x204 );
					m.FixedEffect( 0x376A, 10, 16 );
					
					if ( m is BaseCreature )
						((BaseCreature) m).OnHarmfulSpell( m_Caster );
				}

				return true;
			}