//::///////////////////////////////////////////////
//:: Invocation: Hellrime Blast (Warlock Invocation)
//:: NW_S0_IHellBlst.nss
//:://////////////////////////////////////////////
/*
    Does 1d6 Cold Dmg per "ranking" of Eldritch Blast.
    Additionally, Target may gain a Dexterity penalty.
*/
//:://////////////////////////////////////////////
//:: Created By: Jesse Reynolds (JLR - OEI)
//:: Created On: August 22, 2005
//:://////////////////////////////////////////////
//:: VFX Pass By: Preston W, On: June 20, 2001


#include "nw_i0_invocatns"
#include "jx_inc_magic"
#include "x2_inc_spellhook" 

void mainSpell();
void main()
{
	AssignCommand(JXGetCaster(), mainSpell());
}

void mainSpell()
{

/* 
  Spellcast Hook Code 
  Added 2003-06-23 by GeorgZ
  If you want to make changes to all spells,
  check x2_inc_spellhook.nss to find out more
  
*/

    if (!X2PreSpellCastCode())
    {
	// If code within the PreSpellCastHook (i.e. UMD) reports FALSE, do not run this spell
        { JXPostSpellCastCode(); return; }
    }

// End of Spell Cast Hook


    //Declare major variables
    object oTarget = JXGetSpellTargetObject();

    // Additional Effects: (Cold Dmg, Dex Penalty Effects)
    DoEssenceHellrimeBlast(OBJECT_SELF, oTarget);

	JXPostSpellCastCode();
}
