PRC8/nwn/trunk/newspellbook/moi_wchb_mldshld.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

22 lines
709 B
Plaintext

/*
26/1/21 by Stratovarius
Meldshield: Beginning at 1st level, you can use your
essentia to protect yourself against magical attacks. You
gain an insight bonus equal to the essentia invested in
this ability on all saving throws against spells and spelllike abilities.
*/
#include "moi_inc_moifunc"
void main()
{
object oMeldshaper = PRCGetSpellTargetObject();
int nEssentia = GetEssentiaInvested(oMeldshaper, MELD_WITCH_MELDSHIELD);
if (nEssentia)
{
effect eLink = EffectLinkEffects(eLink, EffectSavingThrowIncrease(SAVING_THROW_ALL, nEssentia, SAVING_THROW_TYPE_SPELL));
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, SupernaturalEffect(eLink), oMeldshaper, 9999.0);
}
}