Commit a903d6e1 authored by TanakaKotoha's avatar TanakaKotoha

lflist after match

parent c3ce1bf0
Pipeline #820 passed with stages
in 44 minutes and 39 seconds
No preview for this file type
This diff is collapsed.
...@@ -102,7 +102,6 @@ function cm.turnupop(e,tp,eg,ep,ev,re,r,rp) ...@@ -102,7 +102,6 @@ function cm.turnupop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sc=Duel.SelectMatchingCard(tp,cm.turnupfilter,tp,LOCATION_DECK+LOCATION_HAND+LOCATION_EXTRA,0,1,1,nil,e,tp) local sc=Duel.SelectMatchingCard(tp,cm.turnupfilter,tp,LOCATION_DECK+LOCATION_HAND+LOCATION_EXTRA,0,1,1,nil,e,tp)
Duel.SpecialSummon(sc,0,tp,tp,true,false,POS_FACEUP_ATTACK) Duel.SpecialSummon(sc,0,tp,tp,true,false,POS_FACEUP_ATTACK)
Duel.ConfirmCards(1-tp,sc)
else else
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET)
local sc=Duel.SelectMatchingCard(tp,cm.setfilter,tp,LOCATION_DECK,0,1,1,nil) local sc=Duel.SelectMatchingCard(tp,cm.setfilter,tp,LOCATION_DECK,0,1,1,nil)
......
...@@ -50,8 +50,8 @@ function cm.turnupop(e,tp,eg,ep,ev,re,r,rp) ...@@ -50,8 +50,8 @@ function cm.turnupop(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
else else
Duel.Hint(HINT_SELECTMSG,1-tp,aux.Stringid(m,6))--to you hand Duel.Hint(HINT_SELECTMSG,1-tp,aux.Stringid(m,6))--to you hand
local nx=Duel.GetMatchingGroupCount(cm.splimit,tp,LOCATION_ONFIELD,0,nil) local nx=Duel.GetMatchingGroupCount(cm.splimit,tp,0,LOCATION_ONFIELD,nil)
if #nx<1 then nx=1 end if nx<1 then nx=1 end
local thg=Duel.SelectMatchingCard(1-tp,cm.thfilter,1-tp,LOCATION_HAND+LOCATION_GRAVE+LOCATION_DECK+LOCATION_REMOVED,0,nx,nx,nil) local thg=Duel.SelectMatchingCard(1-tp,cm.thfilter,1-tp,LOCATION_HAND+LOCATION_GRAVE+LOCATION_DECK+LOCATION_REMOVED,0,nx,nx,nil)
Duel.SendtoHand(thg,tp,REASON_EFFECT) Duel.SendtoHand(thg,tp,REASON_EFFECT)
end end
......
...@@ -88,14 +88,15 @@ function c72404107.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -88,14 +88,15 @@ function c72404107.activate(e,tp,eg,ep,ev,re,r,rp)
end end
elseif sel==4 then elseif sel==4 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local g=Duel.SelectMatchingCard(tp,c72404107.filter1,tp,LOCATION_GRAVE,0,5,5,nil) local g=Duel.SelectMatchingCard(tp,c72404107.filter,tp,LOCATION_GRAVE,0,5,5,nil)
if g:GetCount()==5 then if g:GetCount()==5 then
Duel.SendtoDeck(g,nil,2,REASON_EFFECT) if Duel.SendtoDeck(g,REASON_EFFECT)~=5 then
Duel.Draw(tp,1,REASON_EFFECT) Duel.Draw(tp,1,REASON_EFFECT)
end
end end
else else
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local g=Duel.SelectMatchingCard(tp,c72404107.filter,tp,LOCATION_DECK,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c72404107.filter,tp,LOCATION_MZONE,0,1,1,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
if Duel.SendtoGrave(g,REASON_RELEASE+REASON_EFFECT)~=0 then if Duel.SendtoGrave(g,REASON_RELEASE+REASON_EFFECT)~=0 then
local xg=Duel.SelectMatchingCard(tp,c72404107.filter2,tp,LOCATION_GRAVE+LOCATION_DECK,0,1,1,nil) local xg=Duel.SelectMatchingCard(tp,c72404107.filter2,tp,LOCATION_GRAVE+LOCATION_DECK,0,1,1,nil)
......
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