class 1 summon_bomb : petfix
{
parameter:
	int	DDMagic = 1024257;

handler:
	EventHandler CREATED()
	{
		myself::Summon_SetOption(3,1);
		myself::Summon_SetOption(2,1);
		myself::AddPetDefaultDesire_Follow(20.000000);
		super;
	}

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

	EventHandler MENU_SELECTED(talker,ask,reply,action_id,i0,c0,so0)
	{
		if( action_id == 22 )
		{
			i0 = myself.master.target_id;
			if( i0 <= 0 )
			{
				return;
			}
			myself::AddMoveToTargetDesire(i0,150,0,10000);
		}
		else if( myself::Skill_GetConsumeMP(DDMagic) < myself.sm.mp && myself::Skill_GetConsumeHP(DDMagic) < myself.sm.hp && myself::Skill_InReuseDelay(DDMagic) == 0 )
		{
			myself::AddUseSkillDesireEx(myself.sm.id,DDMagic,0,reply,ask,1000000,0);
		}
	}

	EventHandler USE_SKILL_FINISHED(success)
	{
		if( success == 1 )
		{
			myself::Suicide();
		}
	}

}
