Commit 34ad68f6 authored by CubeRuler's avatar CubeRuler

fixed

parent e6d3c334
Pipeline #15317 passed with stages
in 33 minutes and 27 seconds
...@@ -49,14 +49,12 @@ function cm.desop1(e,tp,eg,ep,ev,re,r,rp) ...@@ -49,14 +49,12 @@ function cm.desop1(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(cm.sfilter,tp,LOCATION_DECK,0,nil) local g=Duel.GetMatchingGroup(cm.sfilter,tp,LOCATION_DECK,0,nil)
if g:GetCount()==0 then return end if g:GetCount()==0 then return end
local coin=Duel.AnnounceCoin(tp) local coin=Duel.AnnounceCoin(tp)
local l1=Duel.TossCoin(tp,1) local res=Duel.TossCoin(tp,1)
local ct=l1 if coin~=res then
if coin~=res then return end Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SELECT)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SELECT) local tc=g:Select(tp,1,1,nil):GetFirst()
local dg=g:Select(tp,1,ct,nil):GetFirst() Duel.SendtoHand(tc,nil,REASON_EFFECT)
if g:GetCount()>0 then Duel.ConfirmCards(1-tp,tc)
Duel.SendtoHand(dg,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,dg)
end end
end end
function cm.destg2(e,tp,eg,ep,ev,re,r,rp,chk) function cm.destg2(e,tp,eg,ep,ev,re,r,rp,chk)
......
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