task BombExtend
{
let BombExtendNum=0;
let BombExtendCounter=0;
wait(5);
while(GetCommonDataDefault("TitleMenu",false)){yield;}
if(GetCommonDataDefault("SELECTEDDIFFICULT","None")=="None")
{return;}
BombDisplay;

task BombDisplay//ライフバーのバー部分の設定
{
		loop
		{
			BombExtendCounter=MagicFragment-(5000*BombExtendNum);
			if(BombExtendCounter>=5000)
			{
				BombExtendCounter-=5000;
				BombExtendNum+=1;
				BombExtendTask;
			}
			yield;
		}
}

task BombExtendTask
{
	if((OnMissed))
	{
		while(OnMissed){yield;}
		wait(15);
	}
		
	PlaySE(SE[4]);
	AddBomb(1);
}

}