PoA_PRC8/35expandedspells/x0_s0_missstorm1.nss
Jaysyn904 7debaedd2a Expanded spells for PoA .35
Expanded spells for PoA .35
2023-06-17 18:32:36 -04:00

51 lines
1.4 KiB
Plaintext

//::///////////////////////////////////////////////
//:: Isaacs Lesser Missile Storm
//:: x0_s0_MissStorm1
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
Up to 10 missiles, each doing 1d6 damage to all
targets in area.
*/
//:://////////////////////////////////////////////
//:: Created By: Brent
//:: Created On: July 31, 2002
//:://////////////////////////////////////////////
//:: Last Updated By:
//:: altered by mr_bumpkin Dec 4, 2003 for prc stuff
#include "spinc_bolt"
#include "prc_add_spell_dc"
void main()
{
DeleteLocalInt(OBJECT_SELF, "X2_L_LAST_SPELLSCHOOL_VAR");
SetLocalInt(OBJECT_SELF, "X2_L_LAST_SPELLSCHOOL_VAR", SPELL_SCHOOL_EVOCATION);
/*
Spellcast Hook Code
Added 2003-06-20 by Georg
If you want to make changes to all spells,
check x2_inc_spellhook.nss to find out more
*/
int nClass = GetLevelByClass(CLASS_TYPE_FMM);
int nCasterLvl = PRCGetCasterLevel(OBJECT_SELF);
if (!X2PreSpellCastCode())
{
// If code within the PreSpellCastHook (i.e. UMD) reports FALSE, do not run this spell
return;
}
// End of Spell Cast Hook
//SpawnScriptDebugger();
PRCDoMissileStorm(1+(nCasterLvl/13), 10+(nClass/5)+(nCasterLvl/10), SPELL_ISAACS_LESSER_MISSILE_STORM);
DeleteLocalInt(OBJECT_SELF, "X2_L_LAST_SPELLSCHOOL_VAR");
// Erasing the variable used to store the spell's spell school
}