NWNDS/nwnds_module/acid_cloud2.nss
Jaysyn904 de24f81734 Added NWN Dark Sun module contents
Added NWN Dark Sun module contents.
2021-07-12 21:24:46 -04:00

22 lines
550 B
Plaintext

void main()
{
effect eAcid;
effect eVis = EffectVisualEffect(VFX_IMP_ACID_S);
object oCaster = GetAreaOfEffectCreator();
object oTarget = GetFirstInPersistentObject();
while ( GetIsObjectValid(oTarget ) )
{
if ( GetIsEnemy(oTarget,oCaster) )
{
eAcid = EffectDamage(d6(6),DAMAGE_TYPE_ACID);
ApplyEffectToObject(DURATION_TYPE_INSTANT,eAcid,oTarget);
ApplyEffectToObject(DURATION_TYPE_INSTANT,eVis,oTarget);
}
oTarget = GetNextInPersistentObject();
}
}