Server.Spells.SpellHelper.AddStatCurse C# (CSharp) Méthode

AddStatCurse() public static méthode

public static AddStatCurse ( Mobile caster, Mobile target, StatType type ) : bool
caster Mobile
target Mobile
type StatType
Résultat bool
		public static bool AddStatCurse( Mobile caster, Mobile target, StatType type )
		{
			return AddStatCurse( target, type, GetOffset(caster), GetDuration(caster));
		}

Same methods

SpellHelper::AddStatCurse ( Mobile target, StatType type, int curse, System.TimeSpan duration ) : bool

Usage Example

Exemple #1
0
        public void Target(Mobile m)
        {
            if (!Caster.CanSee(m))
            {
                Caster.SendLocalizedMessage(500237);                   // Target can not be seen.
            }
            else if (CheckHSequence(m))
            {
                SpellHelper.Turn(Caster, m);

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

                SpellHelper.AddStatCurse(Caster, m, StatType.Dex, TimeSpan.FromSeconds(0));

                if (m.Spell != null)
                {
                    m.Spell.OnCasterHurt();
                }

                m.Paralyzed = false;

                Effects.SendTargetParticles(m, 0x3779, 10, 15, 5002, EffectLayer.Head);
                m.PlaySound(0x1DF);
            }

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