Server.Spells.Spell.CheckBSequence C# (CSharp) Метод

CheckBSequence() публичный Метод

public CheckBSequence ( Mobile target ) : bool
target Mobile
Результат bool
		public bool CheckBSequence( Mobile target )
		{
			return CheckBSequence( target, false );
		}

Same methods

Spell::CheckBSequence ( Mobile target, bool allowDead ) : bool

Usage Example

Пример #1
0
            protected override void OnTarget(Mobile from, object targeted)
            {
                if (targeted is Mobile && m_Spell.CheckBSequence((Mobile)targeted))
                {
                    Mobile targ = (Mobile)targeted;

                    SpellHelper.Turn(m_Spell.Caster, targ);

                    if (targ.BeginAction(typeof(LightCycle)))
                    {
                        double value = Utility.Random(15, 25);

                        new LightCycle.NightSightTimer(targ).Start();

                        targ.LightLevel = 100;

                        Effects.SendTargetParticles(targ, 0x376A, 9, 32, 5007, EffectLayer.Waist);
                        targ.PlaySound(0x1E3);
                    }
                    else
                    {
                        from.SendMessage("{0} already have nightsight.", from == targ ? "You" : "They");
                    }
                }

                m_Spell.FinishSequence();
            }
All Usage Examples Of Server.Spells.Spell::CheckBSequence