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

AddStatBonus() public static méthode

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

Same methods

SpellHelper::AddStatBonus ( Mobile target, StatType type, int bonus, System.TimeSpan duration ) : bool

Usage Example

Exemple #1
0
        public static void ToogleBless(Spell spell, Mobile Caster, Mobile m)
        {
            SpellHelper.Turn(Caster, m);

            SpellHelper.AddStatBonus(Caster, m, StatType.Str, TimeSpan.FromSeconds(0)); SpellHelper.DisableSkillCheck = true;
            SpellHelper.AddStatBonus(Caster, m, StatType.Dex, TimeSpan.FromSeconds(0));
            SpellHelper.AddStatBonus(Caster, m, StatType.Int, TimeSpan.FromSeconds(0)); SpellHelper.DisableSkillCheck = false;

            Effects.SendTargetParticles(m, 0x373A, 10, 15, 5018, EffectLayer.Waist);
            m.PlaySound(0x1EA);
        }
All Usage Examples Of Server.Spells.SpellHelper::AddStatBonus