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,48 @@
//::///////////////////////////////////////////////
//:: Sanctified Mind Partition Mind
//:: psi_smnd_prtmnd.nss
//::///////////////////////////////////////////////
/*
Makes the Sanctified Mind immune to Mind Spells
for a number of rounds equal to class + Cha
once per day
*/
//:://////////////////////////////////////////////
//:: Modified By: Stratovarius
//:: Modified On: 17.2.2006
//:://////////////////////////////////////////////
#include "prc_alterations"
void main()
{
object oPC = OBJECT_SELF;
// Can't be immune to slow and use this ability
if (GetIsImmune(oPC, IMMUNITY_TYPE_SLOW))
{
// Removes effects
PRCRemoveSpellEffects(GetSpellId(), oPC, oPC);
FloatingTextStringOnCreature("*Immune to Slowing - Cannot use this Ability*", oPC, FALSE);
IncrementRemainingFeatUses(oPC, FEAT_SANCMIND_PARTITION_MIND);
return;
}
int nDur = GetLevelByClass(CLASS_TYPE_SANCTIFIED_MIND, oPC) + GetAbilityModifier(ABILITY_CHARISMA, oPC);
// Minimum duration
if (nDur < 1) nDur = 1;
effect eImmune = EffectImmunity(IMMUNITY_TYPE_MIND_SPELLS);
effect eSlow = EffectSlow();
effect eVis = EffectVisualEffect(VFX_DUR_MIND_AFFECTING_POSITIVE);
effect eDur = EffectVisualEffect(VFX_DUR_CESSATE_POSITIVE);
effect eLink = EffectLinkEffects(eImmune, eVis);
eLink = EffectLinkEffects(eLink, eSlow);
eLink = EffectLinkEffects(eLink, eDur);
// Can't dispel it
ExtraordinaryEffect(eLink);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eLink, oPC, RoundsToSeconds(nDur));
}