name: Voltic
card_text: 1 Beast-Type Tuner + 1 or more non-Tuner monsters
  If this card is destroyed by your opponent's card (either by battle or by card effect), both players send the top 7 cards of their Deck to the Graveyard.
lua: local s, id, o = GetID()
  function s.initial_effect(c)
  	--synchro summon
  	aux.AddSynchroProcedure(c, aux.FilterBoolFunction(Card.IsRace, RACE_BEAST), aux.NonTuner(nil), 1)
  	c:EnableReviveLimit()
  	--deckdes
  	local e1 = Effect.CreateEffect(c)
  	e1:SetDescription(aux.Stringid(id, 0))
  	e1:SetCategory(CATEGORY_DECKDES)
  	e1:SetType(EFFECT_TYPE_SINGLE + EFFECT_TYPE_TRIGGER_F)
  	e1:SetCode(EVENT_DESTROYED)
  	e1:SetCondition(s.ddcon)
  	e1:SetTarget(s.ddtg)
  	e1:SetOperation(s.ddop)
  	c:RegisterEffect(e1)
  end
  function s.ddcon(e, tp, eg, ep, ev, re, r, rp)
  	return rp == 1 - tp and e:GetHandler():IsPreviousControler(tp)
  end
  function s.ddtg(e, tp, eg, ep, ev, re, r, rp, chk)
  	if chk == 0 then
  		return true
  	end
  	Duel.SetOperationInfo(0, CATEGORY_DECKDES, 0, 0, PLAYER_ALL, 7)
  end
  function s.ddop(e, tp, eg, ep, ev, re, r, rp)
  	Duel.DiscardDeck(tp, 7, REASON_EFFECT)
  	Duel.DiscardDeck(1 - tp, 7, REASON_EFFECT)
  end
  
  
source_text: Voltic
  1 Beast-Type Tuner + 1 or more non-Tuner monsters
  If this card is destroyed by your opponent's card (either by battle or by card effect), both players send the top 7 cards of their Deck to the Graveyard.
target_text: -- Voltic
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--synchro summon
  	aux.AddSynchroProcedure(c, aux.FilterBoolFunction(Card.IsRace, RACE_BEAST), aux.NonTuner(nil), 1)
  	c:EnableReviveLimit()
  	--deckdes
  	local e1 = Effect.CreateEffect(c)
  	e1:SetDescription(aux.Stringid(id, 0))
  	e1:SetCategory(CATEGORY_DECKDES)
  	e1:SetType(EFFECT_TYPE_SINGLE + EFFECT_TYPE_TRIGGER_F)
  	e1:SetCode(EVENT_DESTROYED)
  	e1:SetCondition(s.ddcon)
  	e1:SetTarget(s.ddtg)
  	e1:SetOperation(s.ddop)
  	c:RegisterEffect(e1)
  end
  function s.ddcon(e, tp, eg, ep, ev, re, r, rp)
  	return rp == 1 - tp and e:GetHandler():IsPreviousControler(tp)
  end
  function s.ddtg(e, tp, eg, ep, ev, re, r, rp, chk)
  	if chk == 0 then
  		return true
  	end
  	Duel.SetOperationInfo(0, CATEGORY_DECKDES, 0, 0, PLAYER_ALL, 7)
  end
  function s.ddop(e, tp, eg, ep, ev, re, r, rp)
  	Duel.DiscardDeck(tp, 7, REASON_EFFECT)
  	Duel.DiscardDeck(1 - tp, 7, REASON_EFFECT)
  end
  
  