EffectSpellResistanceIncrease(int)

Returns an effect which increases spell resistance.

effect EffectSpellResistanceIncrease(
    int nValue
);

Parameters

nValue

amount of spell resistance increase


Description

Returns an effect which increases 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.

Spell resistance should have a minimum of 10 (as generated by items with the property) to be of any use.

It also shouldn't stack (see known bugs) with itself, or any form of Monk spell resistance, but only the highest applies at any one time.


Known Bugs

A few patches ago (1.29 and before?) Monk Spell Resistance stacked with Item resistance and this effect. Now it doesn't, and only the highest out of the 3 applies.


Version

1.22

Example

// Example 1 - The following code creates an effect which, when
// applied, will increase the target's spell resistance by 2 and last 
// for 40 seconds.

effect eSpellIncEffect;
eSpellIncEffect = EffectSpellResistanceIncrease(2);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,eSpellIncEffect,OBJECT_SELF,40.0f);

See Also

functions: ApplyEffectAtLocation | ApplyEffectToObject
categories: Effects Functions


 author: Brett Lathrope, editor: Jasperre
 Send comments on this topic.