DoSpellBreach(object, int, int, int)

Performs a spell breach; up to nTotal spells are removed and nSR spell resistance is lowered.

void DoSpellBreach(
    object oTarget,
    int nTotal,
    int nSR,
    int nSpellId = -1
);

Parameters

oTarget

Spell target.

nTotal

Maximum spell protections that will be stripped.

nSR

Spell resistance decrease value.

nSpellId

Spell origin Id. (Default: -1)


Description

This function is the impact script for all breach spells. Applies visual effect, decreases the spell resistance and strips up to nTotal spell protections from list defined in GetSpellBreachProtection function. The spell resistance decrease is an extraordinary effect and therefore cannot be dispelled.



Remarks

This function is not custom content compatible.


Requirements

#include "nw_i0_spells"


Version

???

See Also

functions:  GetSpellBreachProtection | RemoveProtections
categories:  Spells Functions


author: ShaDoOoW, editors: Mistress, Kolyana