Server.Spells.Spell.AnimTimer.OnTick C# (CSharp) Méthode

OnTick() protected méthode

protected OnTick ( ) : void
Résultat void
			protected override void OnTick()
			{
				if ( m_Spell.State != SpellState.Casting || m_Spell.m_Caster.Spell != m_Spell )
				{
					Stop();
					return;
				}

				if ( !m_Spell.Caster.Mounted && m_Spell.m_Info.Action >= 0 )
				{
					if ( m_Spell.Caster.Body.IsHuman )
						m_Spell.Caster.Animate( m_Spell.m_Info.Action, 7, 1, true, false, 0 );
					else if ( m_Spell.Caster.Player && m_Spell.Caster.Body.IsMonster )
						m_Spell.Caster.Animate( 12, 7, 1, true, false, 0 );
				}

				if ( !Running )
					m_Spell.m_AnimTimer = null;
			}
		}
Spell.AnimTimer