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

41 lines
1.1 KiB
Plaintext

/*
18/02/19 by Stratovarius
Ephemeral Image
Master, Dark Metamorphosis
Level/School: 7th/Illusion (Shadow)
Effect: One shadow duplicate
Duration: 1 minute/level
Saving Throw: None
Spell Resistance: No
You detach your own shadow and animate it with extraplanar energies, creating a dark-hued, hazy duplicate of yourself.
This mystery functions like the spell project image, except as noted above.
*/
#include "shd_inc_shdfunc"
#include "shd_mysthook"
#include "prc_inc_scry"
void main()
{
if(!ShadPreMystCastCode()) return;
object oShadow = OBJECT_SELF;
object oTarget = PRCGetSpellTargetObject();
struct mystery myst = EvaluateMystery(oShadow, oTarget, METASHADOW_EXTEND);
if(myst.bCanMyst)
{
myst.fDur = TurnsToSeconds(myst.nShadowcasterLevel);
if(myst.bExtend) myst.fDur *= 2;
SetLocalInt(oShadow, "ScryCasterLevel", myst.nShadowcasterLevel);
SetLocalInt(oShadow, "ScrySpellId", myst.nMystId);
SetLocalInt(oShadow, "ScrySpellDC", GetShadowcasterDC(oShadow));
SetLocalFloat(oShadow, "ScryDuration", myst.fDur);
ScryMain(oShadow, oShadow);
}
}