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