Files
PRC8/nwn/nwnprc/trunk/spells/sp_rain_ffishC.nss
Jaysyn904 68ca3a56ca 2026/01/22 Update 2
Mechanatrixes always fail saves vs elecricity.
Incorporated most creature ability scripts into the PRC8 & updated them to use PRCEffect(), SPApplyEffectToObject(), etc.
Updated prc_inc_breath to use PRCEffectDamage()
Updated several spell scripts to use PRCEffectDamage().
2026-01-23 00:03:47 -05:00

22 lines
752 B
Plaintext

/////////////////////////////////////////////////////////////
// Rain of Frogs or Fish AoE Heartbeat
// sp_rain_ffishC.nss
/////////////////////////////////////////////////////////////
#include "prc_inc_spells"
void main()
{
location lLoc = GetLocation(OBJECT_SELF);
int nType;
float fDur;
object oTarget = MyFirstObjectInShape(SHAPE_SPHERE, 500.0f, lLoc, FALSE, OBJECT_TYPE_CREATURE);
while(GetIsObjectValid(oTarget))
{
SPApplyEffectToObject(DURATION_TYPE_INSTANT, PRCEffectDamage(oTarget, d3(1), DAMAGE_TYPE_BLUDGEONING), oTarget);
oTarget = MyNextObjectInShape(SHAPE_SPHERE, 500.0f, lLoc, FALSE, OBJECT_TYPE_CREATURE);
}
}