Commit c9d2a1a0 authored by salix5's avatar salix5

fusion confirm

parent a27980d3
...@@ -68,5 +68,10 @@ function c12071500.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -68,5 +68,10 @@ function c12071500.activate(e,tp,eg,ep,ev,re,r,rp)
fop(ce,e,tp,tc,mat2,SUMMON_TYPE_FUSION+0x10) fop(ce,e,tp,tc,mat2,SUMMON_TYPE_FUSION+0x10)
end end
tc:CompleteProcedure() tc:CompleteProcedure()
elseif Duel.IsPlayerCanSpecialSummon(tp) and Duel.IsPlayerCanSpecialSummonCount(tp,1) then
local cg1=Duel.GetFieldGroup(tp,LOCATION_HAND,0)
Duel.ConfirmCards(1-tp,cg1)
local cg2=Duel.GetFieldGroup(tp,LOCATION_EXTRA,0)
Duel.ConfirmCards(1-tp,cg2)
end end
end end
...@@ -75,6 +75,11 @@ function c1264319.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -75,6 +75,11 @@ function c1264319.activate(e,tp,eg,ep,ev,re,r,rp)
fop(ce,e,tp,tc,mat2) fop(ce,e,tp,tc,mat2)
end end
tc:CompleteProcedure() tc:CompleteProcedure()
elseif Duel.IsPlayerCanSpecialSummon(tp) and Duel.IsPlayerCanSpecialSummonCount(tp,1) then
local cg1=Duel.GetFieldGroup(tp,LOCATION_HAND+LOCATION_MZONE,0)
Duel.ConfirmCards(1-tp,cg1)
local cg2=Duel.GetFieldGroup(tp,LOCATION_EXTRA,0)
Duel.ConfirmCards(1-tp,cg2)
end end
end end
function c1264319.thfilter(c) function c1264319.thfilter(c)
......
...@@ -82,5 +82,10 @@ function c23299957.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -82,5 +82,10 @@ function c23299957.activate(e,tp,eg,ep,ev,re,r,rp)
e3:SetCode(EFFECT_CANNOT_DISEFFECT) e3:SetCode(EFFECT_CANNOT_DISEFFECT)
e3:SetReset(RESET_EVENT+0x1fe0000) e3:SetReset(RESET_EVENT+0x1fe0000)
tc:RegisterEffect(e3,true) tc:RegisterEffect(e3,true)
elseif Duel.IsPlayerCanSpecialSummon(tp) and Duel.IsPlayerCanSpecialSummonCount(tp,1) then
local cg1=Duel.GetFieldGroup(tp,LOCATION_HAND+LOCATION_MZONE,0)
Duel.ConfirmCards(1-tp,cg1)
local cg2=Duel.GetFieldGroup(tp,LOCATION_EXTRA,0)
Duel.ConfirmCards(1-tp,cg2)
end end
end end
...@@ -65,5 +65,10 @@ function c24094653.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -65,5 +65,10 @@ function c24094653.activate(e,tp,eg,ep,ev,re,r,rp)
fop(ce,e,tp,tc,mat2) fop(ce,e,tp,tc,mat2)
end end
tc:CompleteProcedure() tc:CompleteProcedure()
elseif Duel.IsPlayerCanSpecialSummon(tp) and Duel.IsPlayerCanSpecialSummonCount(tp,1) then
local cg1=Duel.GetFieldGroup(tp,LOCATION_HAND+LOCATION_MZONE,0)
Duel.ConfirmCards(1-tp,cg1)
local cg2=Duel.GetFieldGroup(tp,LOCATION_EXTRA,0)
Duel.ConfirmCards(1-tp,cg2)
end end
end end
...@@ -76,5 +76,10 @@ function c33550694.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -76,5 +76,10 @@ function c33550694.operation(e,tp,eg,ep,ev,re,r,rp)
fop(ce,e,tp,tc,mat2) fop(ce,e,tp,tc,mat2)
end end
tc:CompleteProcedure() tc:CompleteProcedure()
elseif Duel.IsPlayerCanSpecialSummon(tp) and Duel.IsPlayerCanSpecialSummonCount(tp,1) then
local cg1=Duel.GetFieldGroup(tp,LOCATION_HAND+LOCATION_MZONE,0)
Duel.ConfirmCards(1-tp,cg1)
local cg2=Duel.GetFieldGroup(tp,LOCATION_EXTRA,0)
Duel.ConfirmCards(1-tp,cg2)
end end
end end
...@@ -79,6 +79,11 @@ function c37630732.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -79,6 +79,11 @@ function c37630732.activate(e,tp,eg,ep,ev,re,r,rp)
e2:SetReset(RESET_PHASE+PHASE_END) e2:SetReset(RESET_PHASE+PHASE_END)
e2:SetOperation(c37630732.damop) e2:SetOperation(c37630732.damop)
Duel.RegisterEffect(e2,tp) Duel.RegisterEffect(e2,tp)
elseif Duel.IsPlayerCanSpecialSummon(tp) and Duel.IsPlayerCanSpecialSummonCount(tp,1) then
local cg1=Duel.GetFieldGroup(tp,LOCATION_HAND+LOCATION_MZONE,0)
Duel.ConfirmCards(1-tp,cg1)
local cg2=Duel.GetFieldGroup(tp,LOCATION_EXTRA,0)
Duel.ConfirmCards(1-tp,cg2)
end end
end end
function c37630732.damop(e,tp,eg,ep,ev,re,r,rp) function c37630732.damop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -23,7 +23,7 @@ function c43040603.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -23,7 +23,7 @@ function c43040603.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,LOCATION_DECK)
end end
function c43040603.operation(e,tp,eg,ep,ev,re,r,rp) function c43040603.operation(e,tp,eg,ep,ev,re,r,rp)
if not Duel.IsPlayerCanSpecialSummon(tp) or not Duel.IsPlayerCanDiscardDeck(tp,1) then return end if not Duel.IsPlayerCanSpecialSummon(tp) or not Duel.IsPlayerCanSpecialSummonCount(tp,1) or not Duel.IsPlayerCanDiscardDeck(tp,1) then return end
local g=Duel.GetMatchingGroup(Card.IsSummonableCard,tp,LOCATION_DECK,0,nil) local g=Duel.GetMatchingGroup(Card.IsSummonableCard,tp,LOCATION_DECK,0,nil)
local dcount=Duel.GetFieldGroupCount(tp,LOCATION_DECK,0) local dcount=Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)
local seq=-1 local seq=-1
......
...@@ -93,6 +93,11 @@ function c43698897.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -93,6 +93,11 @@ function c43698897.spop(e,tp,eg,ep,ev,re,r,rp)
fop(ce,e,tp,tc,mat2) fop(ce,e,tp,tc,mat2)
end end
tc:CompleteProcedure() tc:CompleteProcedure()
elseif Duel.IsPlayerCanSpecialSummon(tp) and Duel.IsPlayerCanSpecialSummonCount(tp,1) then
local cg1=Duel.GetFieldGroup(tp,LOCATION_HAND+LOCATION_MZONE,0)
Duel.ConfirmCards(1-tp,cg1)
local cg2=Duel.GetFieldGroup(tp,LOCATION_EXTRA,0)
Duel.ConfirmCards(1-tp,cg2)
end end
end end
function c43698897.thcon(e,tp,eg,ep,ev,re,r,rp) function c43698897.thcon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -80,5 +80,10 @@ function c44394295.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -80,5 +80,10 @@ function c44394295.activate(e,tp,eg,ep,ev,re,r,rp)
fop(ce,e,tp,tc,mat2) fop(ce,e,tp,tc,mat2)
end end
tc:CompleteProcedure() tc:CompleteProcedure()
elseif Duel.IsPlayerCanSpecialSummon(tp) and Duel.IsPlayerCanSpecialSummonCount(tp,1) then
local cg1=Duel.GetFieldGroup(tp,LOCATION_HAND+LOCATION_MZONE,0)
Duel.ConfirmCards(1-tp,cg1)
local cg2=Duel.GetFieldGroup(tp,LOCATION_EXTRA,0)
Duel.ConfirmCards(1-tp,cg2)
end end
end end
...@@ -65,5 +65,10 @@ function c55824220.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -65,5 +65,10 @@ function c55824220.activate(e,tp,eg,ep,ev,re,r,rp)
fop(ce,e,tp,tc,mat2) fop(ce,e,tp,tc,mat2)
end end
tc:CompleteProcedure() tc:CompleteProcedure()
elseif Duel.IsPlayerCanSpecialSummon(tp) and Duel.IsPlayerCanSpecialSummonCount(tp,1) then
local cg1=Duel.GetFieldGroup(tp,LOCATION_HAND+LOCATION_MZONE,0)
Duel.ConfirmCards(1-tp,cg1)
local cg2=Duel.GetFieldGroup(tp,LOCATION_EXTRA,0)
Duel.ConfirmCards(1-tp,cg2)
end end
end end
...@@ -17,7 +17,7 @@ function c58577036.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -17,7 +17,7 @@ function c58577036.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,LOCATION_DECK)
end end
function c58577036.operation(e,tp,eg,ep,ev,re,r,rp) function c58577036.operation(e,tp,eg,ep,ev,re,r,rp)
if not Duel.IsPlayerCanSpecialSummon(tp) or not Duel.IsPlayerCanDiscardDeck(tp,1) then return end if not Duel.IsPlayerCanSpecialSummon(tp) or not Duel.IsPlayerCanSpecialSummonCount(tp,1) or not Duel.IsPlayerCanDiscardDeck(tp,1) then return end
Duel.Hint(HINT_SELECTMSG,1-tp,567) Duel.Hint(HINT_SELECTMSG,1-tp,567)
local lv=Duel.AnnounceNumber(1-tp,1,2,3,4,5,6,7,8,9,10,11,12) local lv=Duel.AnnounceNumber(1-tp,1,2,3,4,5,6,7,8,9,10,11,12)
local g=Duel.GetMatchingGroup(Card.IsSummonableCard,tp,LOCATION_DECK,0,nil) local g=Duel.GetMatchingGroup(Card.IsSummonableCard,tp,LOCATION_DECK,0,nil)
......
...@@ -119,5 +119,10 @@ function c60226558.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -119,5 +119,10 @@ function c60226558.spop(e,tp,eg,ep,ev,re,r,rp)
fop(ce,e,tp,tc,mat2) fop(ce,e,tp,tc,mat2)
end end
tc:CompleteProcedure() tc:CompleteProcedure()
elseif Duel.IsPlayerCanSpecialSummon(tp) and Duel.IsPlayerCanSpecialSummonCount(tp,1) then
local cg1=Duel.GetFieldGroup(tp,LOCATION_HAND+LOCATION_MZONE,0)
Duel.ConfirmCards(1-tp,cg1)
local cg2=Duel.GetFieldGroup(tp,LOCATION_EXTRA,0)
Duel.ConfirmCards(1-tp,cg2)
end end
end end
...@@ -67,5 +67,10 @@ function c6417578.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -67,5 +67,10 @@ function c6417578.activate(e,tp,eg,ep,ev,re,r,rp)
fop(ce,e,tp,tc,mat2) fop(ce,e,tp,tc,mat2)
end end
tc:CompleteProcedure() tc:CompleteProcedure()
elseif Duel.IsPlayerCanSpecialSummon(tp) and Duel.IsPlayerCanSpecialSummonCount(tp,1) then
local cg1=Duel.GetFieldGroup(tp,LOCATION_HAND+LOCATION_MZONE,0)
Duel.ConfirmCards(1-tp,cg1)
local cg2=Duel.GetFieldGroup(tp,LOCATION_EXTRA,0)
Duel.ConfirmCards(1-tp,cg2)
end end
end end
...@@ -105,5 +105,10 @@ function c65331686.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -105,5 +105,10 @@ function c65331686.operation(e,tp,eg,ep,ev,re,r,rp)
fop(ce,e,tp,tc,mat2) fop(ce,e,tp,tc,mat2)
end end
tc:CompleteProcedure() tc:CompleteProcedure()
elseif Duel.IsPlayerCanSpecialSummon(tp) and Duel.IsPlayerCanSpecialSummonCount(tp,1) then
local cg1=Duel.GetFieldGroup(tp,LOCATION_HAND+LOCATION_MZONE,0)
Duel.ConfirmCards(1-tp,cg1)
local cg2=Duel.GetFieldGroup(tp,LOCATION_EXTRA,0)
Duel.ConfirmCards(1-tp,cg2)
end end
end end
...@@ -83,6 +83,11 @@ function c71422989.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -83,6 +83,11 @@ function c71422989.activate(e,tp,eg,ep,ev,re,r,rp)
fop(ce,e,tp,tc,mat2) fop(ce,e,tp,tc,mat2)
end end
tc:CompleteProcedure() tc:CompleteProcedure()
elseif Duel.IsPlayerCanSpecialSummon(tp) and Duel.IsPlayerCanSpecialSummonCount(tp,1) then
local cg1=Duel.GetFieldGroup(tp,LOCATION_HAND+LOCATION_MZONE,0)
Duel.ConfirmCards(1-tp,cg1)
local cg2=Duel.GetFieldGroup(tp,LOCATION_EXTRA,0)
Duel.ConfirmCards(1-tp,cg2)
end end
end end
end end
...@@ -111,6 +111,11 @@ function c73360025.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -111,6 +111,11 @@ function c73360025.spop(e,tp,eg,ep,ev,re,r,rp)
fop(ce,e,tp,tc,mat) fop(ce,e,tp,tc,mat)
end end
tc:CompleteProcedure() tc:CompleteProcedure()
elseif Duel.IsPlayerCanSpecialSummon(tp) and Duel.IsPlayerCanSpecialSummonCount(tp,1) then
local cg1=Duel.GetFieldGroup(tp,LOCATION_HAND+LOCATION_MZONE,0)
Duel.ConfirmCards(1-tp,cg1)
local cg2=Duel.GetFieldGroup(tp,LOCATION_EXTRA,0)
Duel.ConfirmCards(1-tp,cg2)
end end
end end
function c73360025.damcon(e,tp,eg,ep,ev,re,r,rp) function c73360025.damcon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -71,6 +71,11 @@ function c94820406.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -71,6 +71,11 @@ function c94820406.activate(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END) e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END)
e1:SetValue(c94820406.efilter) e1:SetValue(c94820406.efilter)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
elseif Duel.IsPlayerCanSpecialSummon(tp) and Duel.IsPlayerCanSpecialSummonCount(tp,1) then
local cg1=Duel.GetFieldGroup(tp,LOCATION_HAND+LOCATION_MZONE,0)
Duel.ConfirmCards(1-tp,cg1)
local cg2=Duel.GetFieldGroup(tp,LOCATION_EXTRA,0)
Duel.ConfirmCards(1-tp,cg2)
end end
end end
function c94820406.efilter(e,re) function c94820406.efilter(e,re)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment