// v2.1.0 - Updated for new Rez system.
// v2.0.0 -
//::////////////////////////////////////////////////////////////////////////////
//:: FileName:  hark_d_rez_pc_5
//::////////////////////////////////////////////////////////////////////////////
/*
   This will cause the Henchman to drop the masters corpse and wait for a
  Resurrection Spell to be cast upon it.
*/
//::////////////////////////////////////////////////////////////////////////////
#include "hark_i0_generic"
//::////////////////////////////////////////////////////////////////////////////
void main()
{
  object oMaster = GetRealMaster();
  object oPC = GetPCSpeaker();
  string sPCName = GetName(oPC);
  string sMyName = GetName(OBJECT_SELF);
  object oPCT = GetItemPossessedBy(OBJECT_SELF, "PlayerCorpse");
  if (GetIsObjectValid(oPCT))
    {
     // Drop the PCT and set the locals.
     ActionPutDownItem(oPCT);
     SetLocalInt(OBJECT_SELF, HS_REZ_WAIT_CNT, 0);
     SetLocalInt(OBJECT_SELF, HS_REZ_WAITING, TRUE);
     SetLocalObject(OBJECT_SELF, HS_REZ_OFFERED, oPC);

     // Give master some FeedBack.
     int bFeedback = GetLocalInt(GetObjectByTag(HS_VARS_OBJ), HS_VAR_REZ_FDB);
     if (bFeedback)
       { SendMessageToPC(oMaster, sMyName + REZ_MSG28 + sPCName + "."); }
    }
}
//::////////////////////////////////////////////////////////////////////////////
