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.
38 lines
1.3 KiB
Plaintext
38 lines
1.3 KiB
Plaintext
/*
|
|
18/02/19 by Stratovarius
|
|
|
|
Shadow Plague, OnHB
|
|
|
|
Master, Shadow Calling
|
|
Level/School: 8th/Conjuration (Creation) [Cold]
|
|
|
|
This mystery functions like the spell incendiary cloud, except that it deals cold damage rather than fire damage.
|
|
*/
|
|
|
|
#include "shd_inc_shdfunc"
|
|
|
|
void main()
|
|
{
|
|
//Declare major variables
|
|
object oShadow = GetAreaOfEffectCreator();
|
|
struct mystery myst = GetLocalMystery(oShadow, MYST_HOLD_MYST+"4");
|
|
|
|
//Capture the first target object in the shape.
|
|
object oTarget = GetFirstInPersistentObject(OBJECT_SELF, OBJECT_TYPE_CREATURE);
|
|
while(GetIsObjectValid(oTarget))
|
|
{
|
|
if (spellsIsTarget(oTarget, SPELL_TARGET_STANDARDHOSTILE, oShadow))
|
|
{
|
|
int nDamage = MetashadowsDamage(myst, 6, 4);
|
|
nDamage = PRCGetReflexAdjustedDamage(nDamage, oTarget, myst.nSaveDC, SAVING_THROW_TYPE_COLD);
|
|
if(nDamage > 0)
|
|
{
|
|
SPApplyEffectToObject(DURATION_TYPE_INSTANT, PRCEffectDamage(oTarget, nDamage, DAMAGE_TYPE_COLD), oTarget);
|
|
SPApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_OTIL_COLDSPHERE), oTarget);
|
|
}
|
|
}
|
|
//Select the next target within the spell shape.
|
|
oTarget = GetNextInPersistentObject(OBJECT_SELF,OBJECT_TYPE_CREATURE);
|
|
}
|
|
}
|