I was hopeing to get some help with this script it works fine but the only thing I need it to do now is stop healing the monsters and just heal the PCs in the area effect. any help would be great.
Here is the script i'm using.
const float EFFECT_RADIUS = 10.0;
void main()
{
object oPC = GetItemActivator();
effect eDamage = EffectHeal(30);
effect eVisual = EffectVisualEffect(VFX_FNF_LOS_HOLY_10);
effect eEffect = EffectLinkEffects(eVisual, eDamage);
location lTarget = GetLocation(oPC);
oPC = GetFirstObjectInShape(SHAPE_SPHERE, EFFECT_RADIUS, lTarget);
while (GetIsObjectValid(oPC)) {ApplyEffectToObject(DURATION_TYPE_INSTANT, eEffect, oPC);
oPC = GetNextObjectInShape(SHAPE_SPHERE, EFFECT_RADIUS, lTarget); }}