From b65d6496f933c78f612b47c0b1e3f90c7bd2946d Mon Sep 17 00:00:00 2001 From: Beetron-1 Beetletop <113409293+Beetletop@users.noreply.github.com> Date: Fri, 8 Mar 2024 21:14:27 +0300 Subject: [PATCH] Add files via upload --- unofficial/c511027655.lua | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 unofficial/c511027655.lua diff --git a/unofficial/c511027655.lua b/unofficial/c511027655.lua new file mode 100644 index 0000000000..906177c342 --- /dev/null +++ b/unofficial/c511027655.lua @@ -0,0 +1,30 @@ +--ボルテック・バイコーン +--Voltic Bicorn (Anime) +local s,id=GetID() +function s.initial_effect(c) + --synchro summon + Synchro.AddProcedure(c,aux.FilterBoolFunctionEx(Card.IsRace,RACE_BEAST),1,1,Synchro.NonTuner(nil),1,99) + 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: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 true end + local c=e:GetHandler() + local lvl=c:GetLevel() + Duel.SetOperationInfo(0,CATEGORY_DECKDES,nil,0,tp,lvl) + Duel.SetOperationInfo(0,CATEGORY_DECKDES,nil,0,1-tp,lvl) +end +function s.operation(e,tp,eg,ep,ev,re,r,rp) + local c=e:GetHandler() + local lvl=c:GetLevel() + Duel.DiscardDeck(tp,lvl,REASON_EFFECT) + Duel.DiscardDeck(1-tp,lvl,REASON_EFFECT) +end \ No newline at end of file