PoA_PRC8/_haks/poa_exp_spells/sp_gfireburst.nss
Jaysyn904 7dd83ad168 Spell & Ability Upgrade
Reorganized hak files & removed duplicates.  Added @rafhot's PRC spell & ability level scaling expansion.  Further script integration.  Full compile.
2023-08-19 21:08:35 -04:00

25 lines
743 B
Plaintext

/////////////////////////////////////////////////////////////////////
//
// Greater Firestorm - Burst of fire centered on the caster doing
// 1d8/lvl, max 15d8
//
/////////////////////////////////////////////////////////////////////
#include "prc_inc_spells"
#include "spinc_burst"
void main()
{
// If code within the PreSpellCastHook (i.e. UMD) reports FALSE, do not run this spell
if (!X2PreSpellCastCode()) return;
// Get the number of damage dice.
int nCasterLvl = PRCGetCasterLevel(OBJECT_SELF);
int nDice = nCasterLvl;
if (nDice > 40) nDice = 40;
DoBurst (nCasterLvl,8, 0, nDice, VFX_FNF_FIREBALL, VFX_IMP_FLAME_M, 4.0f,
DAMAGE_TYPE_FIRE, DAMAGE_TYPE_FIRE, SAVING_THROW_TYPE_FIRE, TRUE);
}