class 1 summon_heal : petfix
{
parameter:
	int	HealMagic = 1030401;

handler:
	EventHandler CREATED()
	{
		myself::AddPetDefaultDesire_Follow(20.000000);
		super;
	}

	EventHandler NO_DESIRE()
	{
		myself::AddPetDefaultDesire_Follow(20.000000);
	}

	EventHandler MENU_SELECTED(ask,reply)
	{
		if( myself::Skill_GetConsumeMP(HealMagic) < myself.sm.mp && myself::Skill_GetConsumeHP(HealMagic) < myself.sm.hp && myself::Skill_InReuseDelay(HealMagic) == 0 )
		{
			myself::AddUseSkillDesireEx(myself.master.id,HealMagic,1,reply,ask,1000000,0);
		}
	}

}
