Commit 5e4e4706 authored by CubeRuler's avatar CubeRuler

fixed

parent a547650d
Pipeline #22007 passed with stages
in 33 minutes and 9 seconds
......@@ -68,17 +68,22 @@ function cm.tgop(e,tp)
if #g<=0 then return end
local tc,tc2
local ct = 0
::TOG::
g=Duel.GetFieldGroup(tp,LOCATION_DECK,0)
if #g>0 then
tc = g:GetMinGroup(Card.GetSequence):GetFirst()
Duel.SendtoGrave(tc,REASON_EFFECT)
tc2 = Duel.GetOperatedGroup():GetFirst()
if tc2 and tc2:IsLocation(LOCATION_GRAVE) then
ct = ct + 1
end
if tc2 and tc2:IsSetCard(0x55d) then
goto TOG
local flag= true
--::TOG::
while flag do
flag=false
g=Duel.GetFieldGroup(tp,LOCATION_DECK,0)
if #g>0 then
tc = g:GetMinGroup(Card.GetSequence):GetFirst()
Duel.SendtoGrave(tc,REASON_EFFECT)
tc2 = Duel.GetOperatedGroup():GetFirst()
if tc2 and tc2:IsLocation(LOCATION_GRAVE) then
ct = ct + 1
end
if tc2 and tc2:IsSetCard(0x55d) then
flag=true
--goto TOG
end
end
end
Duel.BreakEffect()
......
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