PRC8_fork/nwn/nwnprc/trunk/spells/sp_greenfire_en.nss
Jaysyn904 d87fe14826 Further file organization
Further file organization
2023-08-23 22:11:00 -04:00

21 lines
577 B
Plaintext

#include "prc_inc_spells"
#include "spinc_greenfire"
void main()
{
// When the caster poofs, all functions calling GetAreaOfEffectCreator() will
// fail, so in that case terminate the spell (taken from NWN cloudkill).
object oCaster = GetAreaOfEffectCreator();
if (!GetIsObjectValid(oCaster))
{
DestroyObject(OBJECT_SELF);
return;
}
// Get the adjusted damage type.
int nDamageType = PRCGetElementalDamageType(DAMAGE_TYPE_ACID, oCaster);
// Run the greenfire logic on the entering object.
DoGreenfire(nDamageType, oCaster, GetEnteringObject());
}