function onBegin()
	disableMovement()
	disableRetry()
	if not getFlag("warrior_markoth") then
		playSound("event:/CC/CC_HollowKnight/SFX/Scene/HeroDreamNailSlash",player.Position)
		player.DummyAutoAnimate = false
		player.Sprite:Play("dreamNail")
		wait(1.45)
		setFlag("warrior_markoth",true)
		wait(0.3)
		setFlag("warrior_markoth2",true)
	else
		say("CC_XELKHK_WarriorDone")
	end
end

function onEnd()
	setFlag("warrior_markoth",true)
	setFlag("Markoth",true)
	enableMovement()
	enableRetry()
end