mirror of
http://prc.nwn.ee:3000/Jaysyn/PRC8.git
synced 2025-12-18 08:37:14 -05:00
Initial upload.
Adding base PRC 4.19a files to repository.
This commit is contained in:
22
trunk/newspellbook/moi_wchb_mldshld.nss
Normal file
22
trunk/newspellbook/moi_wchb_mldshld.nss
Normal file
@@ -0,0 +1,22 @@
|
||||
/*
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user