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

18 lines
506 B
Plaintext

#include "prc_inc_spells"
#include "spinc_bolt"
#include "prc_add_spell_dc"
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 nCasterLevel = PRCGetCasterLevel(OBJECT_SELF);
int nDice = (nCasterLevel + 1) / 2;
if (nDice > 20) nDice = 20;
DoBolt (nCasterLevel,8, 0, nDice, VFX_BEAM_FIRE_LASH, VFX_IMP_FLAME_S,
DAMAGE_TYPE_FIRE, SAVING_THROW_TYPE_FIRE);
}