EffectSpellResistanceDecrease(int)

Returns a Spell Resistance Decrease effect.

effect EffectSpellResistanceDecrease(
    int nValue
);

Parameters

nValue

amount of spell resistance decrease


Description

Returns an effect which decreases spell resistance by nValue. If nValue is less than 1, nothing happens.



Remarks

This function only creates the effect, it still must be applied to have any impact on the target.


Version

1.22

Example

// Example 1 - The following example will create an effect
// which, when applied, would decrease the target's spell
// resistance by 2 and last for 40 seconds.

  effect eSpellDecEffect;
  eSpellDecEffect = EffectSpellResistanceDecrease(2);
  ApplyEffectToObject(DURATION_TYPE_INSTANT,eSpellDecEffect,OBJECT_SELF,40.0f);

See Also

functions: ApplyEffectToObject
categories: Effects Functions


 author: Brett Lathrope
 Send comments on this topic.