PoA_PRC8/_module/_removed files/x0_s0_missstorm1.nss
Jaysyn904 151d074880 Added "Removed Files" folder
Added "Removed Files" folder in case we needed to review any of them.
2022-10-10 10:39:34 -04:00

66 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:
#include "X0_I0_SPELLS"
#include "x2_inc_spellhook"
void main()
{
/*
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
*/
if (!X2PreSpellCastCode())
{
// If code within the PreSpellCastHook (i.e. UMD) reports FALSE, do not run this spell
return;
}
// End of Spell Cast Hook
//Epic Adjustment By Genisys
//I added a level adjustment to the spell
int nInt;
int nDD;
object oCaster = OBJECT_SELF;
int nCL = GetCasterLevel(oCaster);
//If caster level is 9 or higher..
if(nCL >8)
{
int nEL = nCL - 6;
int nDiv = nEL / 3;
nInt = nDiv + 6; //6 missles + 1 missle every 3 levels over level 6 caster
//(16 Max total Missles)
//end if Level Check
}
//If not level 9+, then 6 is the max # of missles / level
else
{
nInt = 6;
}
//SpawnScriptDebugger();
DoMissileStorm(1, nInt, SPELL_ISAACS_LESSER_MISSILE_STORM);
}