script_enemy_main
{
	#include_function ".\System\EnemyFunctions.dnh"
	SetDamageRate(0, 0);
	
	let disappeared = false;
	SetCommonData("LBlackLife", 0);
	
	@Initialize
	{
		SetLife(1);
		Init;
		DieTask;
	}
	
	@MainLoop
	{
		yield;
	}
	
	@DrawLoop
	{
		if(!disappeared)
		{
			DrawLilyBlack;
		}
	}
	
	@Finalize
	{
	}
	
	task DieTask
	{
		yield;
		PlaySE(die);
		leafSplode;
		loop(60)
		{
			yield;
		}
		loop(8)
		{
			leafSplode;
		}
		PlaySE(die);
		disappeared = true;
		loop(203)
		{
			yield;
		}
		VanishEnemy;
	}
}