Commit 72011919 authored by Grajade's avatar Grajade

Update c74561013.lua

parent d6d55251
...@@ -121,6 +121,20 @@ function cCardno.reop(e,tp,eg,ep,ev,re,r,rp) ...@@ -121,6 +121,20 @@ function cCardno.reop(e,tp,eg,ep,ev,re,r,rp)
local g=e:GetLabelObject() local g=e:GetLabelObject()
local sg=g:Filter(cCardno.refilter,nil,e:GetLabel()) local sg=g:Filter(cCardno.refilter,nil,e:GetLabel())
if sg:GetCount()<1 then return end if sg:GetCount()<1 then return end
for i=1,2 do
local p=tp
if i==2 then p=1-tp end
local ct=sg:FilterCount(Card.IsPreviousControler,nil,p)
local ft=Duel.GetLocationCount(p,LOCATION_MZONE)
if ft<ct and ft>0 then
Duel.Hint(HINT_SELECTMSG,p,aux.Stringid(74561013,0))
local tg=sg:Select(p,ft,ft,nil)
for tc in aux.Next(tg) do
Duel.ReturnToField(tc)
sg:RemoveCard(tc)
end
end
end
for tc in aux.Next(sg) do for tc in aux.Next(sg) do
Duel.ReturnToField(tc) Duel.ReturnToField(tc)
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