PRC8/nwn/trunk/newspellbook/moi_mld_plward.nss
Jaysyn904 5914ed2ab5 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.
2023-08-22 10:00:21 -04:00

36 lines
1.8 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
10/1/20 by Stratovarius
Planar Ward
Descriptors: None
Classes: Incarnate
Chakra: Throat
Saving Throw: See text
You shape incarnum into an amulet bound tight to your throat by a slender blue chain. The amulet itself resembles a large blue sapphire carved into the shape of a scarab beetle holding a solar disk between its front legs.
You become immune to charm and compulsion spells.
Essentia: The planar ward provides a morale bonus on saves made to resist extraplanar creatures. The bonus is equal to the number of points of essentia invested in the soulmeld.
Chakra Bind (Throat)
Your planar ward takes the form of a glowing blue orb embedded in the base of your throat. When an extraplanar creature strikes you, the orb flares with blue light, enveloping the attacker for an instant.
Whenever you are struck by an extraplanar creature, the attacking creature must succeed on a Will save or be driven back to its home plane. The creature adds its Hit Dice as a bonus on its saving throw, and you add your meldshaper level to the planar wards save DC. A successful save renders the creature immune to this effect.
*/
#include "moi_inc_moifunc"
void main()
{
object oMeldshaper = PRCGetSpellTargetObject();
int nEssentia = GetEssentiaInvested(oMeldshaper);
effect eLink = EffectVisualEffect(VFX_DUR_CESSATE_POSITIVE);
if (nEssentia) ApplyEffectToObject(DURATION_TYPE_TEMPORARY, SupernaturalEffect(VersusRacialTypeEffect(EffectSavingThrowIncrease(SAVING_THROW_ALL, nEssentia), RACIAL_TYPE_OUTSIDER)), oMeldshaper, 9999.0);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, SupernaturalEffect(eLink), oMeldshaper, 9999.0);
IPSafeAddItemProperty(GetPCSkin(oMeldshaper), ItemPropertyBonusFeat(IP_CONST_MELD_PLANAR_WARD), 9999.0, X2_IP_ADDPROP_POLICY_KEEP_EXISTING);
}