Commit 58fa8dfd authored by DailyShana's avatar DailyShana

update

they do not contain effects of confirming extra deck
parent f28fad18
...@@ -24,7 +24,7 @@ function c46820049.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -24,7 +24,7 @@ function c46820049.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_HANDES,0,0,1-tp,1) Duel.SetOperationInfo(0,CATEGORY_HANDES,0,0,1-tp,1)
end end
function c46820049.operation(e,tp,eg,ep,ev,re,r,rp) function c46820049.operation(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetFieldGroup(ep,LOCATION_HAND,0,nil) local g=Duel.GetFieldGroup(ep,LOCATION_HAND,0)
if g:GetCount()==0 then return end if g:GetCount()==0 then return end
local sg=g:RandomSelect(ep,1) local sg=g:RandomSelect(ep,1)
Duel.SendtoGrave(sg,REASON_DISCARD+REASON_EFFECT) Duel.SendtoGrave(sg,REASON_DISCARD+REASON_EFFECT)
......
...@@ -15,7 +15,7 @@ function c49587034.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -15,7 +15,7 @@ function c49587034.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,1-tp,LOCATION_HAND) Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,1-tp,LOCATION_HAND)
end end
function c49587034.activate(e,tp,eg,ep,ev,re,r,rp) function c49587034.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetFieldGroup(1-tp,LOCATION_HAND,0,nil) local g=Duel.GetFieldGroup(1-tp,LOCATION_HAND,0)
local rs=g:RandomSelect(1-tp,1) local rs=g:RandomSelect(1-tp,1)
local card=rs:GetFirst() local card=rs:GetFirst()
if card==nil then return end if card==nil then return end
......
...@@ -41,7 +41,7 @@ function c52352005.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -41,7 +41,7 @@ function c52352005.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_HANDES,nil,0,1-tp,1) Duel.SetOperationInfo(0,CATEGORY_HANDES,nil,0,1-tp,1)
end end
function c52352005.operation(e,tp,eg,ep,ev,re,r,rp) function c52352005.operation(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetFieldGroup(1-tp,LOCATION_HAND,0,nil) local g=Duel.GetFieldGroup(1-tp,LOCATION_HAND,0)
local sg=g:RandomSelect(1-tp,1) local sg=g:RandomSelect(1-tp,1)
Duel.SendtoGrave(sg,REASON_DISCARD+REASON_EFFECT) Duel.SendtoGrave(sg,REASON_DISCARD+REASON_EFFECT)
end end
...@@ -39,13 +39,9 @@ function c57319935.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -39,13 +39,9 @@ function c57319935.activate(e,tp,eg,ep,ev,re,r,rp)
local tc1=Duel.SelectMatchingCard(tp,Card.IsRankBelow,tp,LOCATION_EXTRA,0,1,1,nil,e:GetLabel()):GetFirst() local tc1=Duel.SelectMatchingCard(tp,Card.IsRankBelow,tp,LOCATION_EXTRA,0,1,1,nil,e:GetLabel()):GetFirst()
Duel.Hint(HINT_SELECTMSG,1-tp,aux.Stringid(57319935,0)) Duel.Hint(HINT_SELECTMSG,1-tp,aux.Stringid(57319935,0))
local tc2=Duel.SelectMatchingCard(1-tp,Card.IsRankBelow,1-tp,LOCATION_EXTRA,0,1,1,nil,e:GetLabel()):GetFirst() local tc2=Duel.SelectMatchingCard(1-tp,Card.IsRankBelow,1-tp,LOCATION_EXTRA,0,1,1,nil,e:GetLabel()):GetFirst()
if tc1 then if tc1 and tc2 then
Duel.ConfirmCards(1-tp,tc1) Duel.ConfirmCards(1-tp,tc1)
end
if tc2 then
Duel.ConfirmCards(tp,tc2) Duel.ConfirmCards(tp,tc2)
end
if tc1 and tc2 then
local atk1=tc1:GetAttack() local atk1=tc1:GetAttack()
local atk2=tc2:GetAttack() local atk2=tc2:GetAttack()
if atk1>atk2 then if atk1>atk2 then
...@@ -55,18 +51,9 @@ function c57319935.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -55,18 +51,9 @@ function c57319935.activate(e,tp,eg,ep,ev,re,r,rp)
end end
elseif tc1 then elseif tc1 then
Duel.ConfirmCards(1-tp,tc1) Duel.ConfirmCards(1-tp,tc1)
local g=Duel.GetFieldGroup(1-tp,LOCATION_EXTRA,0)
Duel.ConfirmCards(tp,g)
Duel.Damage(1-tp,tc1:GetAttack(),REASON_EFFECT) Duel.Damage(1-tp,tc1:GetAttack(),REASON_EFFECT)
elseif tc2 then elseif tc2 then
Duel.ConfirmCards(tp,tc2) Duel.ConfirmCards(tp,tc2)
local g=Duel.GetFieldGroup(tp,LOCATION_EXTRA,0)
Duel.ConfirmCards(1-tp,g)
Duel.Damage(tp,tc2:GetAttack(),REASON_EFFECT) Duel.Damage(tp,tc2:GetAttack(),REASON_EFFECT)
else
local g1=Duel.GetFieldGroup(tp,LOCATION_EXTRA,0)
local g2=Duel.GetFieldGroup(1-tp,LOCATION_EXTRA,0)
Duel.ConfirmCards(tp,g2)
Duel.ConfirmCards(1-tp,g1)
end end
end end
...@@ -16,9 +16,6 @@ function c6859683.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -16,9 +16,6 @@ function c6859683.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return g:FilterCount(c6859683.filter,nil)>=2 end if chk==0 then return g:FilterCount(c6859683.filter,nil)>=2 end
end end
function c6859683.operation(e,tp,eg,ep,ev,re,r,rp) function c6859683.operation(e,tp,eg,ep,ev,re,r,rp)
local cg=Duel.GetFieldGroup(tp,0,LOCATION_EXTRA)
if cg:FilterCount(c6859683.filter,nil)<2 then return end
Duel.ConfirmCards(tp,cg)
local g=Duel.GetMatchingGroup(Card.IsType,1-tp,LOCATION_EXTRA,0,nil,TYPE_FUSION) local g=Duel.GetMatchingGroup(Card.IsType,1-tp,LOCATION_EXTRA,0,nil,TYPE_FUSION)
if g:GetCount()<2 then return end if g:GetCount()<2 then return end
local rg=g:RandomSelect(tp,2) local rg=g:RandomSelect(tp,2)
......
...@@ -30,8 +30,6 @@ function c7405310.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -30,8 +30,6 @@ function c7405310.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmCards(tp,cg) Duel.ConfirmCards(tp,cg)
end end
else else
local cg=Duel.GetFieldGroup(1-tp,LOCATION_EXTRA,0) Duel.DiscardHand(tp,nil,1,1,REASON_EFFECT+REASON_DISCARD)
Duel.ConfirmCards(tp,cg)
Duel.DiscardHand(tp,aux.TRUE,1,1,REASON_EFFECT+REASON_DISCARD)
end end
end end
...@@ -22,7 +22,7 @@ function c80108118.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -22,7 +22,7 @@ function c80108118.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,1,1-tp,LOCATION_HAND) Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,1,1-tp,LOCATION_HAND)
end end
function c80108118.operation(e,tp,eg,ep,ev,re,r,rp) function c80108118.operation(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetFieldGroup(ep,LOCATION_HAND,0,nil) local g=Duel.GetFieldGroup(ep,LOCATION_HAND,0)
if g:GetCount()==0 then return end if g:GetCount()==0 then return end
local sg=g:RandomSelect(1-tp,1) local sg=g:RandomSelect(1-tp,1)
Duel.SendtoDeck(sg,nil,0,REASON_EFFECT) Duel.SendtoDeck(sg,nil,0,REASON_EFFECT)
......
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