script_enemy_main {
	#include_function ".\includeMasterSurvivalSatori.txt"
	#include_function ".\event.txt"
	task InitMaster {
		SetCommonData("Life Type", 2);
		SetCommonData("Life Type Current", 0);
		timer = 60*60; timerMax = 60*60;
		SetInvincibility(300);
		while(OnPlayerMissed || OnBomb) { SetInvincibility(300); yield; }
		KomeijiEvent;
		wait(360);
		PlaySE2("spelldeclare");
		SpellLine(6, 0);
		ShowBonus(4000000, 0);
		spellcardattack;
		cutin(cut,0,0,255,64,255);
		SetCommonData("Spell Active", true);
		SetCommonData("Spell Background Type", 0);
		wait(120);
		timerReduce = true;
	}
	task KomeijiEvent { InitializeEvent(1, 1);
		SetCutinGraphic(0, 0, 1, 0);
		SetCutinGraphic(1, 0, 0, 1);
		SetCharStatusPresent(0, 0, true);
		SetCharStatusPresent(1, 0, true);
		SetCharStatusTalking(0, 0, false);
		SetCharStatusTalking(1, 0, true);
		SetEventText(1, 0, 16, 288, 150);
		SetCutinGraphic(1, 0, 2, 1);
		SetEventText(1, 4, 17, 272, 150);
		SetCharStatusPresent(0, 0, false);
		SetCharStatusPresent(1, 0, false);
		loop(60) { yield; }
	FinalizeEvent; }
}