PRC8_fork/trunk/scripts/prc_suel_disstrk.nss
Jaysyn904 1662218bb4 Initial upload.
Adding base PRC 4.19a files to repository.
2022-10-07 13:51:24 -04:00

33 lines
1.1 KiB
Plaintext

//::///////////////////////////////////////////////
//:: Suel Archanamach Dispelling Strike
//:: prc_suel_disstrk.nss
//::///////////////////////////////////////////////
/*
Performs an attack round with a dispel on the first strike
*/
//:://////////////////////////////////////////////
//:: Modified By: Stratovarius
//:: Modified On: 7.4.2006
//:://////////////////////////////////////////////
#include "inc_dispel"
#include "prc_inc_combat"
void main()
{
object oPC = OBJECT_SELF;
object oTarget = PRCGetSpellTargetObject();
effect eVis = EffectVisualEffect(VFX_IMP_BREACH);
effect eImpact = EffectVisualEffect(VFX_FNF_DISPEL_GREATER);
effect eDummy;
// The d20 is rolled in the script, this is the effective dispel caster level
int nDispel = GetLevelByClass(CLASS_TYPE_SUEL_ARCHANAMACH, oPC) + 6;
PerformAttackRound(oTarget, oPC, eDummy, 0.0, 0, 0, DAMAGE_TYPE_MAGICAL, FALSE, "Dispelling Strike Hit", "Dispelling Strike Miss");
if (GetLocalInt(oTarget, "PRCCombat_StruckByAttack"))
{
spellsDispelMagicMod(oTarget, nDispel, eVis, eImpact);
}
}