mirror of
http://prc.nwn.ee:3000/Jaysyn/PRC8.git
synced 2025-12-17 06:57:16 -05:00
Initial upload.
Adding base PRC 4.19a files to repository.
This commit is contained in:
18
trunk/scripts/prc_wild_strike.nss
Normal file
18
trunk/scripts/prc_wild_strike.nss
Normal file
@@ -0,0 +1,18 @@
|
||||
#include "prc_inc_spells"
|
||||
|
||||
void main()
|
||||
{
|
||||
//Declare major variables
|
||||
object oCaster = OBJECT_SELF;
|
||||
object oTarget = PRCGetSpellTargetObject();
|
||||
int nCasterLvl = PRCGetCasterLevel(oCaster);
|
||||
int nPenetr = nCasterLvl + SPGetPenetr();
|
||||
float fDur = RoundsToSeconds(d6(2));
|
||||
|
||||
if (!PRCDoResistSpell(oCaster, oTarget, nPenetr))
|
||||
{
|
||||
SetLocalInt(oTarget, "WildMageStrike", TRUE);
|
||||
DelayCommand(fDur, DeleteLocalInt(oTarget, "WildMageStrike"));
|
||||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectVisualEffect(VFX_DUR_PRISMATIC_SPHERE), oTarget, fDur);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user