Further file organization
Further file organization
This commit is contained in:
20
nwn/nwnprc/trunk/spells/sp_greenfire_en.nss
Normal file
20
nwn/nwnprc/trunk/spells/sp_greenfire_en.nss
Normal file
@@ -0,0 +1,20 @@
|
||||
#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());
|
||||
}
|
Reference in New Issue
Block a user