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

function onEnd()
	setFlag("warrior_elderhu",true)
	setFlag("ElderHu",true)
	enableMovement()
	enableRetry()
end