Commit fe574b03 authored by zengsxing's avatar zengsxing

Update c101301069.lua

parent 2607db3e
Pipeline #34238 passed with stages
in 1 minute and 39 seconds
...@@ -42,8 +42,11 @@ function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -42,8 +42,11 @@ function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local g2=Duel.GetMatchingGroup(s.mfilter,tp,LOCATION_GRAVE,0,nil,e) local g2=Duel.GetMatchingGroup(s.mfilter,tp,LOCATION_GRAVE,0,nil,e)
if chkc then return false end if chkc then return false end
if chk==0 then return g1:GetCount()>0 and g2:GetCount()>0 end if chk==0 then return g1:GetCount()>0 and g2:GetCount()>0 end
g1:Merge(g2) local max=math.min(#g1,#g2)
local tg=g1:SelectSubGroup(tp,s.fselect,false,2) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
local tg=g1:Select(tp,1,max,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
tg:Merge(g2:Select(tp,#tg,#tg,nil))
Duel.SetTargetCard(tg) Duel.SetTargetCard(tg)
Duel.SetOperationInfo(0,CATEGORY_TODECK,tg,#tg,0,0) Duel.SetOperationInfo(0,CATEGORY_TODECK,tg,#tg,0,0)
end end
......
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