--Chromagon, The Unseen Spectrum local s,id=GetID() function s.initial_effect(c) c:EnableReviveLimit() aux.AddOrigBigbangType(c) aux.AddBigbangProc(c,Card.IsNeutral,1,1,s.matfilter,1) --While this this Bigbang Summoned card is in the Monster Zone, negate the effects of all face-up Synchro and Xyz Monsters on the field. local e1=Effect.CreateEffect(c) e1:SetType(EFFECT_TYPE_FIELD) e1:SetCode(EFFECT_DISABLE) e1:SetRange(LOCATION_MZONE) e1:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE) e1:SetCondition(function(e) return e:GetHandler():IsSummonType(SUMMON_TYPE_BIGBANG) end) e1:SetTarget(function(e,c) return c:IsType(TYPE_SYNCHRO|TYPE_XYZ) and (c:IsType(TYPE_EFFECT) or c:IsOriginalType(TYPE_EFFECT)) end) c:RegisterEffect(e1) --If this card is Special Summoned: You can send 1 Synchro or Xyz monster from your Extra Deck to the GY. local e2=Effect.CreateEffect(c) e2:SetCategory(CATEGORY_TOGRAVE) e2:SetProperty(EFFECT_FLAG_DELAY) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e2:SetCode(EVENT_SPSUMMON_SUCCESS) e2:SetCountLimit(1,{id,0}) e2:SetTarget(s.tgtg) e2:SetOperation(s.tgop) c:RegisterEffect(e2) --If this card is in your GY: You can banish 1 Synchro and 1 Xyz from the GYs, and if you do, Special Summon this card. local e3=Effect.CreateEffect(c) e3:SetCategory(CATEGORY_SPECIAL_SUMMON) e3:SetType(EFFECT_TYPE_IGNITION) e3:SetRange(LOCATION_GRAVE) e3:SetCountLimit(1,{id,1}) e3:SetTarget(s.sptg) e3:SetOperation(s.spop) c:RegisterEffect(e3) end function s.matfilter(c) return not c:IsNeutral() and c:IsType(TYPE_SYNCHRO|TYPE_XYZ) end function s.tgfilter(c) return c:IsType(TYPE_SYNCHRO|TYPE_XYZ) and c:IsAbleToGrave() end function s.tgtg(e,tp,eg,ep,ev,re,r,rp,chk) if chk==0 then return Duel.IsExistingMatchingCard(s.tgfilter,tp,LOCATION_DECK+LOCATION_EXTRA,0,1,nil) and e:GetHandler():IsRelateToEffect(e) end Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_DECK+LOCATION_EXTRA) end function s.tgop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) local tc=Duel.SelectMatchingCard(tp,s.tgfilter,tp,LOCATION_DECK+LOCATION_EXTRA,0,1,1,nil):GetFirst() Duel.SendtoGrave(tc,REASON_EFFECT) end function s.cfilter(c) return c:IsType(TYPE_SYNCHRO|TYPE_XYZ) and c:IsAbleToRemove() end function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) local c=e:GetHandler() local g=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_GRAVE,LOCATION_GRAVE,nil) if chk==0 then return g:CheckSubGroup(aux.gfcheck,2,2,Card.IsType,TYPE_SYNCHRO,TYPE_XYZ) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) end Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,c,1,tp,0) Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,2,PLAYER_ALL,LOCATION_GRAVE) end function s.spop(e,tp,eg,ep,ev,re,r,rp) local c=e:GetHandler() local g=Duel.GetMatchingGroup(s.cfilter,tp,LOCATION_GRAVE,LOCATION_GRAVE,nil) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) local sg=g:SelectSubGroup(tp,aux.gfcheck,false,2,2,Card.IsType,TYPE_SYNCHRO,TYPE_XYZ) if c:IsRelateToEffect(e) and Duel.Remove(sg,POS_FACEUP,REASON_EFFECT)>1 then Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) end end