name: Blizzard
card_text: If this card destroys an opponent's monster by battle: Look at the top card of their Deck and place it on the top or bottom of the Deck.
lua: local s, id, o = GetID()
  function s.initial_effect(c)
  	local e1 = Effect.CreateEffect(c)
  	e1:SetDescription(aux.Stringid(id, 0))
  	e1:SetType(EFFECT_TYPE_SINGLE + EFFECT_TYPE_TRIGGER_F)
  	e1:SetCode(EVENT_BATTLE_DESTROYING)
  	e1:SetCondition(s.condition)
  	e1:SetOperation(s.operation)
  	c:RegisterEffect(e1)
  end
  function s.condition(e, tp, eg, ep, ev, re, r, rp)
  	local c = e:GetHandler()
  	return c:IsRelateToBattle() and c:GetBattleTarget():IsType(TYPE_MONSTER)
  end
  function s.operation(e, tp, eg, ep, ev, re, r, rp)
  	local g = Duel.GetDecktopGroup(1 - tp, 1)
  	if g:GetCount() == 0 then
  		return
  	end
  	Duel.ConfirmCards(tp, g)
  	local tc = g:GetFirst()
  	local opt = Duel.SelectOption(tp, aux.Stringid(id, 1), aux.Stringid(id, 2))
  	if opt == 1 then
  		Duel.MoveSequence(tc, opt)
  	end
  end
  
  
source_text: Blizzard
  If this card destroys an opponent's monster by battle: Look at the top card of their Deck and place it on the top or bottom of the Deck.
target_text: -- Blizzard
  local s, id, o = GetID()
  function s.initial_effect(c)
  	local e1 = Effect.CreateEffect(c)
  	e1:SetDescription(aux.Stringid(id, 0))
  	e1:SetType(EFFECT_TYPE_SINGLE + EFFECT_TYPE_TRIGGER_F)
  	e1:SetCode(EVENT_BATTLE_DESTROYING)
  	e1:SetCondition(s.condition)
  	e1:SetOperation(s.operation)
  	c:RegisterEffect(e1)
  end
  function s.condition(e, tp, eg, ep, ev, re, r, rp)
  	local c = e:GetHandler()
  	return c:IsRelateToBattle() and c:GetBattleTarget():IsType(TYPE_MONSTER)
  end
  function s.operation(e, tp, eg, ep, ev, re, r, rp)
  	local g = Duel.GetDecktopGroup(1 - tp, 1)
  	if g:GetCount() == 0 then
  		return
  	end
  	Duel.ConfirmCards(tp, g)
  	local tc = g:GetFirst()
  	local opt = Duel.SelectOption(tp, aux.Stringid(id, 1), aux.Stringid(id, 2))
  	if opt == 1 then
  		Duel.MoveSequence(tc, opt)
  	end
  end
  
  