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.
Decreases to a targets spell resistance probably do stack, as they basically decrease the highest value which would be used to counter spells, and themselves do not define the targets new Spell Resistance.
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_TEMPORARY,eSpellDecEffect,OBJECT_SELF,40.0f);
See Also
functions: | ApplyEffectToObject |
categories: | Effects Functions |
author: Brett Lathrope, editor: Jasperre
Send comments on this topic.