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

37 lines
1.2 KiB
Plaintext

/*
14/02/19 by Stratovarius
Step Into Shadow
Initiate, Ebon Roads
Level/School: 4th/Conjuration (Teleportation)
Range: Long (400 ft. + 40 ft./level)
Target: You and touched objects or other touched willing creatures
Duration: Instantaneous
You transport yourself through the Plane of Shadow to any spot within range. Your shadow stretches out from you until it reaches your chosen destination, passing through solid objects and moving independently of the ambient light. You appear to fall into your shadow at one end, and rise from it at the other.
This mystery functions like the spell dimension door.
*/
#include "shd_inc_shdfunc"
#include "shd_mysthook"
#include "spinc_dimdoor"
void main()
{
if(!ShadPreMystCastCode()) return;
object oShadow = OBJECT_SELF;
object oTarget = PRCGetSpellTargetObject();
struct mystery myst = EvaluateMystery(oShadow, oTarget, METASHADOW_NONE);
if(myst.bCanMyst)
{
int bSelfOrParty = DIMENSIONDOOR_SELF;
if (myst.nMystId == MYST_STEP_SHADOW_PARTY)
bSelfOrParty = DIMENSIONDOOR_PARTY;
DimensionDoor(oShadow, myst.nShadowcasterLevel, myst.nMystId, "", bSelfOrParty);
}
}