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.
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_INSTANT,eSpellIncEffect,OBJECT_SELF,40.0f);
See Also
functions: | ApplyEffectAtLocation | ApplyEffectToObject |
categories: | Effects Functions |
author: Brett Lathrope
Send comments on this topic.