PRC8/nwn/nwnprc/trunk/scripts/prc_sacrdvit.nss
Jaysyn904 6ec137a24e Updated AMS marker feats
Updated AMS marker feats.  Removed arcane & divine marker feats.  Updated Dread Necromancer for epic progression. Updated weapon baseitem models.  Updated new weapons for crafting & npc equip.
 Updated prefix.  Updated release archive.
2024-02-11 14:01:05 -05:00

36 lines
1.4 KiB
Plaintext

//////////////////////////////////////////////////////////////////////////////////
// Sacred Vitality
// prc_sacrvit.nss
//////////////////////////////////////////////////////////////////////////////////
/** @file Sacred Vitality [Divine]
Prerequisite: Ability to turn undead.
Benefit: As a standard action, you can spend one of your turning attempts to gain
immunity to ability damage, ability drain, and energy drain for 1 minute.
*/
//////////////////////////////////////////////////////////////////////////////////
// Author: Tenjac
// Created: 4/22/08
//////////////////////////////////////////////////////////////////////////////////
#include "prc_alterations"
void main()
{
object oPC = OBJECT_SELF;
if(GetAlignmentGoodEvil(oPC) == ALIGNMENT_EVIL)
{
SendMessageToPC(oPC, "You must be able to Turn Undead to use this feat.");
return;
}
if(GetHasFeat(FEAT_TURN_UNDEAD, oPC))
{
DecrementRemainingFeatUses(oPC, FEAT_TURN_UNDEAD);
effect eLink = EffectLinkEffects(EffectImmunity(IMMUNITY_TYPE_NEGATIVE_LEVEL), EffectImmunity(IMMUNITY_TYPE_ABILITY_DECREASE));
eLink = EffectLinkEffects(eLink, EffectVisualEffect(VFX_DUR_PROTECTION_GOOD_MAJOR));
SPApplyEffectToObject(DURATION_TYPE_TEMPORARY, eLink, oPC, TurnsToSeconds(1));
}
}