From d5d04d8edae49c98d87532a13d5f36129e3fc0c8 Mon Sep 17 00:00:00 2001 From: Attila Szeremi Date: Thu, 11 Sep 2025 20:38:01 +0200 Subject: [PATCH 1/2] Update Cyber Jar to reveal both players' cards before any summoning --- official/c34124316.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/official/c34124316.lua b/official/c34124316.lua index 78c482cd74..54ab9fade1 100644 --- a/official/c34124316.lua +++ b/official/c34124316.lua @@ -56,8 +56,8 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) local tohand,tograve=nonsummonable1:Merge(nonsummonable2):Split(Card.IsAbleToHand,nil) Duel.DisableShuffleCheck() Duel.ConfirmDecktop(p,5) - summon(summonable1,e,p,tograve,ft1) Duel.ConfirmDecktop(1-p,5) + summon(summonable1,e,p,tograve,ft1) summon(summonable2,e,1-p,tograve,ft2) Duel.SpecialSummonComplete() if #tohand>0 then From e10bd08b887c1df9a5391dcfa4391a81e84fb081 Mon Sep 17 00:00:00 2001 From: Attila Szeremi Date: Wed, 17 Sep 2025 14:52:25 +0200 Subject: [PATCH 2/2] Update Cyber Jar for GOAT format --- goat/c504700187.lua | 73 ++++++++++++++++++++++++++++++++++++++++++ official/c34124316.lua | 2 +- 2 files changed, 74 insertions(+), 1 deletion(-) create mode 100644 goat/c504700187.lua diff --git a/goat/c504700187.lua b/goat/c504700187.lua new file mode 100644 index 0000000000..6b140c2dcc --- /dev/null +++ b/goat/c504700187.lua @@ -0,0 +1,73 @@ +--サイバーポッド +--Cyber Jar (GOAT) +--The first player gets to see the second player's cards as well before deciding how to summon. +local s,id=GetID() +function s.initial_effect(c) + --flip + local e1=Effect.CreateEffect(c) + e1:SetCategory(CATEGORY_DESTROY+CATEGORY_SPECIAL_SUMMON+CATEGORY_TOHAND+CATEGORY_SEARCH) + e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_FLIP) + 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 g=Duel.GetFieldGroup(tp,LOCATION_MZONE,LOCATION_MZONE) + Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,#g,0,0) + Duel.SetPossibleOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,0,PLAYER_ALL,LOCATION_DECK) +end +function s.spchk(c,e,tp) + return c:IsLevelBelow(4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_ATTACK|POS_FACEDOWN_DEFENSE) +end +local function summon(g,e,p,tograve,ft) + if #g==0 then return end + if ft==0 then + tograve:Merge(g) + return + end + if ft<#g then + Duel.Hint(HINT_SELECTMSG,p,HINTMSG_SPSUMMON) + local newg=g:Select(p,ft,ft,nil) + tograve:Merge(g:Sub(newg)) + g=newg + end + for tc in g:Iter() do + Duel.SpecialSummonStep(tc,0,p,p,false,false,POS_FACEUP_ATTACK|POS_FACEDOWN_DEFENSE) + end +end +function s.operation(e,tp,eg,ep,ev,re,r,rp) + local g=Duel.GetFieldGroup(tp,LOCATION_MZONE,LOCATION_MZONE) + Duel.Destroy(g,REASON_EFFECT) + Duel.BreakEffect() + local p=Duel.GetTurnPlayer() + local summonable1,nonsummonable1=Duel.GetDecktopGroup(p,5):Split(s.spchk,nil,e,p) + local summonable2,nonsummonable2=Duel.GetDecktopGroup(1-p,5):Split(s.spchk,nil,e,1-p) + local ft1=Duel.GetLocationCount(p,LOCATION_MZONE) + if ft1>1 and Duel.IsPlayerAffectedByEffect(p,CARD_BLUEEYES_SPIRIT) and #summonable1>1 then + nonsummonable1:Merge(summonable1) + summonable1:Clear() + end + local ft2=Duel.GetLocationCount(1-p,LOCATION_MZONE) + if ft2>1 and Duel.IsPlayerAffectedByEffect(1-p,CARD_BLUEEYES_SPIRIT) and #summonable2>1 then + nonsummonable2:Merge(summonable2) + summonable2:Clear() + end + local tohand,tograve=nonsummonable1:Merge(nonsummonable2):Split(Card.IsAbleToHand,nil) + Duel.DisableShuffleCheck() + Duel.ConfirmDecktop(p,5) + Duel.ConfirmDecktop(1-p,5) + summon(summonable1,e,p,tograve,ft1) + summon(summonable2,e,1-p,tograve,ft2) + Duel.SpecialSummonComplete() + if #tohand>0 then + Duel.SendtoHand(tohand,nil,REASON_EFFECT) + Duel.ShuffleHand(tp) + Duel.ShuffleHand(1-tp) + end + if #tograve>0 then + Duel.SendtoGrave(tograve,REASON_EFFECT) + end + local fg=Duel.GetMatchingGroup(Card.IsFacedown,tp,LOCATION_MZONE,LOCATION_MZONE,nil) + Duel.ShuffleSetCard(fg) +end diff --git a/official/c34124316.lua b/official/c34124316.lua index 54ab9fade1..78c482cd74 100644 --- a/official/c34124316.lua +++ b/official/c34124316.lua @@ -56,8 +56,8 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp) local tohand,tograve=nonsummonable1:Merge(nonsummonable2):Split(Card.IsAbleToHand,nil) Duel.DisableShuffleCheck() Duel.ConfirmDecktop(p,5) - Duel.ConfirmDecktop(1-p,5) summon(summonable1,e,p,tograve,ft1) + Duel.ConfirmDecktop(1-p,5) summon(summonable2,e,1-p,tograve,ft2) Duel.SpecialSummonComplete() if #tohand>0 then