LoD_PRC8/_module/nss/bx_famispa.nss
Jaysyn904 94990edc60 Initial Upload
Initial Upload
2023-09-21 21:20:34 -04:00

20 lines
692 B
Plaintext

void main()
{
object oTarget;
int iRoll = d8(1);
oTarget = GetFirstObjectInShape(SHAPE_SPHERE, 15.0, GetLocation(OBJECT_SELF), OBJECT_TYPE_CREATURE);
if(iRoll == 4 && GetIsObjectValid(oTarget))
{
while(oTarget != OBJECT_SELF)
{
if(!GetIsDM(oTarget) && !GetIsDead(oTarget))
{
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, EffectAbilityDecrease(ABILITY_CONSTITUTION, 10), oTarget, 36.0f);
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_DEMON_HAND), oTarget);
}
oTarget = GetNextObjectInShape(SHAPE_SPHERE, 15.0, GetLocation(OBJECT_SELF), OBJECT_TYPE_CREATURE);
}
}
}