PRC8/trunk/newspellbook/shd_myst_dncgshd.nss
Jaysyn904 1662218bb4 Initial upload.
Adding base PRC 4.19a files to repository.
2022-10-07 13:51:24 -04:00

38 lines
1.1 KiB
Plaintext

/*
13/02/19 by Stratovarius
Dancing Shadows
Apprentice, Shutters and Clouds
Level/School: 3rd/Illusion (Glamer)
Range: Touch
Target: One creature
Duration: 1 round/level
You draw the shadows around yourself or another subject, where they waver and shift, partially obscuring form.
You grant the subject gains total concealment.
*/
#include "shd_inc_shdfunc"
#include "shd_mysthook"
void main()
{
if(!ShadPreMystCastCode()) return;
object oShadow = OBJECT_SELF;
object oTarget = PRCGetSpellTargetObject();
struct mystery myst = EvaluateMystery(oShadow, oTarget, METASHADOW_EXTEND);
if(myst.bCanMyst)
{
myst.eLink = EffectLinkEffects(EffectConcealment(50), EffectVisualEffect(VFX_DUR_SHADOWS_ANTILIGHT));
myst.fDur = 6.0 * myst.nShadowcasterLevel;
if(myst.bExtend) myst.fDur *= 2;
// Duration Effects
if (myst.bIgnoreSR) myst.eLink = SupernaturalEffect(myst.eLink);
SPApplyEffectToObject(DURATION_TYPE_TEMPORARY, myst.eLink, oTarget, myst.fDur, TRUE, myst.nMystId, myst.nShadowcasterLevel);
}
}