Initial upload.
Adding base PRC 4.19a files to repository.
This commit is contained in:
45
trunk/users/Tenjac/spells/sp_clearmind.nss
Normal file
45
trunk/users/Tenjac/spells/sp_clearmind.nss
Normal file
@@ -0,0 +1,45 @@
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Name Clear Mind
|
||||
//:: FileName sp_clearmind.nss
|
||||
//:://////////////////////////////////////////////
|
||||
/** @file
|
||||
Clear Mind
|
||||
Abjuration
|
||||
Level: Paladin 1
|
||||
Components: V, S, DF,
|
||||
Casting Time: 1 standard action
|
||||
Range: Personal
|
||||
Target: You
|
||||
Duration: 10 minutes/level
|
||||
|
||||
A silver glow sheathes your body as you complete the spell. As the glow fades, you feel a touch
|
||||
of the divine at the back of your mind. This divine touch spreads until you feel your concerns
|
||||
and anxieties fade away.
|
||||
|
||||
You gain a +4 sacred bonus on saving throws made against mind-affecting spells and effects.
|
||||
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Tenjac
|
||||
//:: Created On: 1/23/21
|
||||
//:://////////////////////////////////////////////
|
||||
|
||||
#include "prc_sp_func"
|
||||
#include "prc_add_spell_dc"
|
||||
|
||||
|
||||
void main()
|
||||
{
|
||||
if(!X2PreSpellCastCode()) return;
|
||||
PRCSetSchool(SPELL_SCHOOL_ABJURATION);
|
||||
object oPC = OBJECT_SELF;
|
||||
int nCasterLvl = PRCGetCasterLevel(oPC);
|
||||
float fDur = 600 * nCasterLvl;
|
||||
effect eVis = EffectVisualEffect(VFX_DUR_AURA_BLUE_LIGHT);
|
||||
effect eBuff = EffectSavingThrowIncrease(SAVING_THROW_ALL, 4, SAVING_THROW_TYPE_MIND_SPELLS);
|
||||
|
||||
SPApplyEffectToObject(oPC, DURATION_TYPE_TEMPORARY, eVis, 3.0f);
|
||||
SPApplyEffectToObject(oPC, DURATION_TYPE_TEMPORARY, eBuff, fDur);
|
||||
|
||||
PRCSetSchool();
|
||||
}
|
Reference in New Issue
Block a user