void main()
{

object oPC = GetLastKiller();

while (GetIsObjectValid(GetMaster(oPC)))
   {
   oPC=GetMaster(oPC);
   }

if (!GetIsPC(oPC)) return;

SetLocalInt(oPC, "ForceFieldDestroyed", 1);

AssignCommand(oPC, ClearAllActions(TRUE));

MusicBattleStop(GetArea(oPC));

MusicBackgroundChangeDay(GetArea(oPC), 1);
MusicBackgroundChangeNight(GetArea(oPC), 1);

object oTarget = GetNearestObjectByTag("SoulGem");

ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_MYSTICAL_EXPLOSION), GetLocation(oTarget));
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_BLINDDEAF), GetLocation(oTarget));

}

