Server.Spells.SpellHelper.CheckReflect C# (CSharp) Method

CheckReflect() public static method

public static CheckReflect ( int circle, Mobile caster, Mobile &target ) : void
circle int
caster Mobile
target Mobile
return void
		public static void CheckReflect( int circle, Mobile caster, ref Mobile target )
		{
			CheckReflect( circle, ref caster, ref target );
		}

Usage Example

示例#1
0
        public void Target(Mobile m)
        {
            if (CheckHSequence(m))
            {
                SpellHelper.Turn(Caster, m);

                SpellHelper.CheckReflect((int)this.Circle, Caster, ref m);

                /* Temporarily chokes off the air suply of the target with poisonous fumes.
                 * The target is inflicted with poison damage over time.
                 * The amount of damage dealt each "hit" is based off of the caster's Spirit Speak skill and the Target's current Stamina.
                 * The less Stamina the target has, the more damage is done by Strangle.
                 * Duration of the effect is Spirit Speak skill level / 10 rounds, with a minimum number of 4 rounds.
                 * The first round of damage is dealt after 5 seconds, and every next round after that comes 1 second sooner than the one before, until there is only 1 second between rounds.
                 * The base damage of the effect lies between (Spirit Speak skill level / 10) - 2 and (Spirit Speak skill level / 10) + 1.
                 * Base damage is multiplied by the following formula: (3 - (target's current Stamina / target's maximum Stamina) * 2).
                 * Example:
                 * For a target at full Stamina the damage multiplier is 1,
                 * for a target at 50% Stamina the damage multiplier is 2 and
                 * for a target at 20% Stamina the damage multiplier is 2.6
                 */

                m.PlaySound(0x22F);
                Effects.SendTargetParticles(m, 0x36CB, 1, 9, 9911, 67, 5, EffectLayer.Head);
                Effects.SendTargetParticles(m, 0x374A, 1, 17, 9502, 1108, 4, (EffectLayer)255);

                if (m is PlayerMobile)
                {
                    PlayerMobile pm       = Caster as PlayerMobile;
                    double       duration = 10.0;

                    //((PlayerMobile)m).Aphonier(TimeSpan.FromSeconds(duration));
                }

                m.Stam = (int)(m.Stam * 0.15);
            }

            FinishSequence();
        }
All Usage Examples Of Server.Spells.SpellHelper::CheckReflect