Added PnP Dire Rat.

Added PnP Dire Rat.
This commit is contained in:
Jaysyn904
2021-07-21 17:48:43 -04:00
parent 552f1686c8
commit b01c5cc7db
10849 changed files with 171143 additions and 1 deletions

View File

@@ -0,0 +1,31 @@
/************************************
* Tower of Iron Will *
* *
* Cost: 6 *
* Power Score: Wis -2 *
* *
*************************************/
#include "lib_psionic"
void main()
{
object oPC=OBJECT_SELF;
int nCost=6;
int nPowerScore=GetAbilityScore(oPC, ABILITY_WISDOM)-2;
int nLevel=GetEffectivePsionicLevel(oPC, FEAT_PSIONIC_TOWER_OF_IRON_WILL);
effect eVis=EffectVisualEffect(VFX_DUR_GLOBE_INVULNERABILITY);
effect eLink=EffectImmunity(IMMUNITY_TYPE_MIND_SPELLS);
eLink=EffectLinkEffects(eLink, EffectVisualEffect(VFX_DUR_CESSATE_POSITIVE));
eLink=EffectLinkEffects(eLink, eVis);
eLink=ExtraordinaryEffect(eLink);
if (!PowerCheck(oPC, nCost, nPowerScore, FEAT_PSIONIC_TOWER_OF_IRON_WILL)) return;
int nDuration=GetEnhancedEffect(nLevel);
SignalEvent(oPC, EventSpellCastAt(oPC, SPELL_PSIONIC_TOWER_OF_IRON_WILL, FALSE));
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eLink, oPC, TurnsToSeconds(nDuration));
}