Commit 40f591c2 authored by TanakaKotoha's avatar TanakaKotoha

daniaozhuanzhuanzhuan

parent 8863e44c
Pipeline #2482 passed with stages
in 44 minutes and 25 seconds
......@@ -45,16 +45,18 @@ function cm.tdtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
function cm.tdop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if not tc:IsRelateToEffect(e) and not e:GetHandler():IsRelateToEffect(e) then return end
if ( not tc:IsRelateToEffect(e) ) or ( not e:GetHandler():IsRelateToEffect(e) ) then return end
local tt=Duel.GetFlagEffect(tp,m)
local tt1=(Duel.GetFlagEffect(tp,m+100)+1)*3
Debug.Message(tt)
Debug.Message(tt1)
if tt<tt1 then
Duel.SendtoDeck(tc,nil,2,REASON_EFFECT)
elseif tc:IsAbleToHand() and Duel.SelectYesNo(tp,aux.Stringid(m,1)) then
Duel.SendtoHand(tc,tp,REASON_EFFECT)
Duel.RegisterFlagEffect(tp,m+100,nil,0,1)
else
Duel.SendtoDeck(tc,nil,2,REASON_EFFECT)
Duel.SendtoDeck(tc,nil,2,REASON_EFFECT)
end
end
function cm.thtgfil(c)
......@@ -71,4 +73,4 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmCards(1-tp,g)
rsba.ActLimitFun(g:GetFirst(),e,tp)
end
end
end
\ No newline at end of file
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