mirror of
http://prc.nwn.ee:3000/Jaysyn/PRC8.git
synced 2026-01-12 11:46:34 -05:00
Updated Release Archive
Updated Release Archive. Fixed Mage-killer prereqs. Removed old LETO & ConvoCC related files. Added organized spell scroll store. Fixed Gloura spellbook. Various TLK fixes. Reorganized Repo. Removed invalid user folders. Added DocGen back in.
This commit is contained in:
25
nwn/trunk/racescripts/race_resistance.nss
Normal file
25
nwn/trunk/racescripts/race_resistance.nss
Normal file
@@ -0,0 +1,25 @@
|
||||
/* Resistance racial ability for Elans
|
||||
Grants a save bonus for 1 round.*/
|
||||
|
||||
#include "psi_inc_psifunc"
|
||||
#include "prc_sp_func"
|
||||
|
||||
|
||||
void main()
|
||||
{
|
||||
object oTarget = PRCGetSpellTargetObject();
|
||||
|
||||
if(GetCurrentPowerPoints(OBJECT_SELF) > 0)
|
||||
{
|
||||
effect eSave = EffectSavingThrowIncrease(SAVING_THROW_ALL, 4);
|
||||
|
||||
//Fire cast spell at event for the specified target
|
||||
SignalEvent(oTarget, EventSpellCastAt(OBJECT_SELF, GetSpellId(), FALSE));
|
||||
|
||||
//Apply the VFX impact and effects
|
||||
SPApplyEffectToObject(DURATION_TYPE_TEMPORARY, eSave, oTarget, 6.0, TRUE, -1, 0);
|
||||
|
||||
//pay the PP cost
|
||||
LosePowerPoints(OBJECT_SELF, 1);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user