From ef40aa8317b797c151164a39569e0cfcad30a99b Mon Sep 17 00:00:00 2001 From: Playmaker1210 Date: Tue, 21 Dec 2021 15:36:47 +0100 Subject: [PATCH] Fixed Universe Destruction mostly --- lua/c561586067.lua | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/lua/c561586067.lua b/lua/c561586067.lua index 39e2a5d..92c2d1e 100644 --- a/lua/c561586067.lua +++ b/lua/c561586067.lua @@ -1,14 +1,13 @@ ---Universe Arrival +--Universe Destruction local s,id=GetID() function s.initial_effect(c) --Activate local e1=Effect.CreateEffect(c) - e1:SetCategory(CATEGORY_TOGRAVE) + e1:SetCategory(CATEGORY_TOGRAVE + CATEGORY_DESTROY) e1:SetType(EFFECT_TYPE_ACTIVATE) - e1:SetCode(EVENT_FREE_CHAIN) + e1:SetCode(EVENT_) e1:SetCost(s.cost) e1:SetTarget(s.thtg) - e1:SetOperation(s.activate) e1:SetOperation(s.thop) c:RegisterEffect(e1) @@ -20,8 +19,6 @@ end function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.costfilter,tp,LOCATION_DECK,0,1,nil) end Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_DECK) -end -function s.activate(e,tp,eg,ep,ev,re,r,rp) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) local g=Duel.SelectMatchingCard(tp,s.costfilter,tp,LOCATION_DECK,0,1,1,nil) if #g>0 then