spellsDispelMagic(object, int, effect, effect, int, int)
Dispel magic on one or multiple targets.
The object you want to dispel.
The highest level spell to dispel.
The visual effect to apply.
Dispel all spells or just one. (Default: TRUE)
Dispel spells or not. (Default: FALSE)
Attempts a dispel on one target, with all safety checks put in.
Doesn't dispel magic on petrified targets.
If bAll is TRUE then EffectDispelMagicBest is called and will dispel the highest level spell effect (up to two spells) on them up to nCasterLevel.
If bBreachSpells is TRUE then DoSpellBreach is called to perform the dispel. If DoSpellBreach is FALSE, no dispelling takes place.
#include " x0_i0_spells "