CheckBSequence() 공개 메소드

public CheckBSequence ( Mobile target ) : bool
target Mobile
리턴 bool
예제 #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();
            }
예제 #2
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);

                        value = SpellHelper.AdjustValue(m_Spell.Caster, value);

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

                        targ.LightLevel = -100;

                        Effects.SendTargetParticles(targ, 0x376A, 9, 32, 5007, EffectLayer.Waist);
                        targ.PlaySound(0x1E3);
                    }
                    else
                    {
                        from.SendMessage("{0} deja le sort de voile applique.", from == targ ? "Vous avez" : "Ils ont");
                    }
                }

                m_Spell.FinishSequence();
            }
예제 #3
0
            protected override void OnTarget(Mobile from, object targeted)
            {
                if (targeted is PlayerMobile && m_spell.CheckBSequence((Mobile)targeted))
                {
                    PlayerMobile targ = (PlayerMobile)targeted;

                    SpellHelper.Turn(m_spell.Caster, targ);

                    TimeSpan duration = TimeSpan.FromSeconds(0);

                    new ArmurePierreSpell.InternalTimer(targ, duration).Start();
                    //targ.ArmurePierre = true;

                    Effects.SendTargetParticles(targ, 6899, 9, 32, 5007, 2302, 0, EffectLayer.LeftFoot);
                    targ.PlaySound(508);
                }

                m_spell.FinishSequence();
            }
			public static bool CHECKBSPELLSEQUENCE(TriggerObject trigObject, Spell spell, Mobile target, bool allowDead)
			{
				return spell != null && spell.CheckBSequence(target, allowDead);
			}