#include "nw_i0_tool"

void main()
{
    object oSparks = GetObjectByTag("jhr_magicsparksred");
    object oDestroyer = GetLastKiller();
    if (GetLocalInt(GetModule(), "bDMPresent") != 1)
    {
        RewardPartyXP(60, oDestroyer);
        AdjustAlignment(GetLastKiller(), ALIGNMENT_GOOD, 1);
    }
    PlaySound("c_shadow_bat2");
    //SetPlaceableIllumination(oSparks, FALSE);
    AssignCommand(oDestroyer, DestroyObject(oSparks));
    AssignCommand(oDestroyer, DelayCommand(3.0, RecomputeStaticLighting(GetArea(oDestroyer))));
}
