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.
39 lines
1.3 KiB
Plaintext
39 lines
1.3 KiB
Plaintext
/*
|
|
15/02/19 by Stratovarius
|
|
|
|
Curtain of Shadows
|
|
|
|
Initiate, Veil of Shadows
|
|
Level/School: 5th/Transmutation
|
|
Range: Close (25 ft. + 5 ft./2 levels)
|
|
Effect: Shadowy wall
|
|
Duration: 1 minute/level
|
|
Saving Throw: None
|
|
Spell Resistance: No
|
|
|
|
You create a wall of frigid shadow that wracks all who pass through it with cold.
|
|
|
|
You create a wall of shadow. Any creature passing through the wall takes 1d6 points of cold damage per caster level (maximum 15d6).
|
|
*/
|
|
|
|
#include "shd_inc_shdfunc"
|
|
|
|
void main()
|
|
{
|
|
//Declare major variables
|
|
object oShadow = GetAreaOfEffectCreator();
|
|
object oAoE = GetAreaOfEffectObject(GetLocalLocation(oShadow, "BlackFire_Loc"), "VFX_PER_CURTAIN_SHADOWS");
|
|
struct mystery myst = GetLocalMystery(oShadow, MYST_HOLD_MYST+"3");
|
|
int nDice = min(15, myst.nShadowcasterLevel);
|
|
|
|
//Capture the first target object in the shape.
|
|
object oTarget = GetEnteringObject();
|
|
if (spellsIsTarget(oTarget, SPELL_TARGET_STANDARDHOSTILE, oShadow))
|
|
{
|
|
int nDamage = MetashadowsDamage(myst, 6, nDice);
|
|
// Apply effects to the currently selected target.
|
|
SPApplyEffectToObject(DURATION_TYPE_INSTANT, PRCEffectDamage(oTarget, nDamage, DAMAGE_TYPE_COLD), oTarget);
|
|
SPApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_IMP_FLAME_M_PURPLE), oTarget);
|
|
}
|
|
}
|