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

function onEnd()
	setFlag("warrior_galien",true)
	setFlag("Galien",true)
	enableMovement()
	enableRetry()
end