mirror of
http://prc.nwn.ee:3000/Jaysyn/PRC8.git
synced 2025-12-17 04:57:15 -05:00
Initial upload.
Adding base PRC 4.19a files to repository.
This commit is contained in:
20
trunk/spells/sp_greenfire_en.nss
Normal file
20
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