Initial upload.

Adding base PRC 4.19a files to repository.
This commit is contained in:
Jaysyn904
2022-10-07 13:51:24 -04:00
parent 646eb01834
commit 1662218bb4
22441 changed files with 1274376 additions and 0 deletions

View 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);
}
}