//////////////////////////////////////////////////
//	Author: Drammel								//
//	Date: 4/23/2009								//
//	Name: sf_sdn_recovery						//
//	Description: As a swift action, the PC can	//
//	recovery an expended maneuver, once per day.//
//////////////////////////////////////////////////

#include "bot9s_inc_maneuvers"
#include "bot9s_inc_misc"

void main()
{
	object oPC = OBJECT_SELF;
	string sToB = GetFirstName(oPC) + "tob";
	object oToB = GetObjectByTag(sToB);
	string sData = GetLocalString(oToB, "BlackBox");
	string sClass = GetStringRight(sData, 3);
	string sScreen;

	if (sClass == "___")
	{
		string sScreen = "SCREEN_QUICK_STRIKE";
	}
	else sScreen = "SCREEN_QUICK_STRIKE" + sClass;

	if ((GetLocalInt(oToB, "SuddenRecovery") == 0) && (GetLocalInt(oToB, "Swift") == 0))
	{
		ToggleMasks(FALSE, sScreen);
		SetLocalInt(oToB, "SuddenRecovery", 1);
	}
	else SendMessageToPC(oPC, "<color=red>You cannot use Sudden Recovery again until you have rested.</color>");
}