name: Localized
card_text: Shuffle all cards from your hand and Graveyard into the Deck.
lua: local s, id, o = GetID()
  function s.initial_effect(c)
  	--Activate
  	local e1 = Effect.CreateEffect(c)
  	e1:SetCategory(CATEGORY_TODECK)
  	e1:SetType(EFFECT_TYPE_ACTIVATE)
  	e1:SetCode(EVENT_FREE_CHAIN)
  	e1:SetTarget(s.target)
  	e1:SetOperation(s.operation)
  	c:RegisterEffect(e1)
  end
  function s.target(e, tp, eg, ep, ev, re, r, rp, chk)
  	if chk == 0 then
  		return Duel.GetFieldGroupCount(tp, LOCATION_HAND + LOCATION_GRAVE, 0) > 0
  	end
  	local g = Duel.GetFieldGroup(tp, LOCATION_HAND + LOCATION_GRAVE, 0)
  	Duel.SetOperationInfo(0, CATEGORY_TODECK, g, g:GetCount(), 0, LOCATION_HAND + LOCATION_GRAVE)
  end
  function s.operation(e, tp, eg, ep, ev, re, r, rp)
  	local g = Duel.GetFieldGroup(tp, LOCATION_HAND + LOCATION_GRAVE, 0)
  	if aux.NecroValleyNegateCheck(g) then
  		return
  	end
  	Duel.SendtoDeck(g, nil, SEQ_DECKSHUFFLE, REASON_EFFECT)
  end
  
  
source_text: Localized
  Shuffle all cards from your hand and Graveyard into the Deck.
target_text: -- Localized
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--Activate
  	local e1 = Effect.CreateEffect(c)
  	e1:SetCategory(CATEGORY_TODECK)
  	e1:SetType(EFFECT_TYPE_ACTIVATE)
  	e1:SetCode(EVENT_FREE_CHAIN)
  	e1:SetTarget(s.target)
  	e1:SetOperation(s.operation)
  	c:RegisterEffect(e1)
  end
  function s.target(e, tp, eg, ep, ev, re, r, rp, chk)
  	if chk == 0 then
  		return Duel.GetFieldGroupCount(tp, LOCATION_HAND + LOCATION_GRAVE, 0) > 0
  	end
  	local g = Duel.GetFieldGroup(tp, LOCATION_HAND + LOCATION_GRAVE, 0)
  	Duel.SetOperationInfo(0, CATEGORY_TODECK, g, g:GetCount(), 0, LOCATION_HAND + LOCATION_GRAVE)
  end
  function s.operation(e, tp, eg, ep, ev, re, r, rp)
  	local g = Duel.GetFieldGroup(tp, LOCATION_HAND + LOCATION_GRAVE, 0)
  	if aux.NecroValleyNegateCheck(g) then
  		return
  	end
  	Duel.SendtoDeck(g, nil, SEQ_DECKSHUFFLE, REASON_EFFECT)
  end
  
  