Commit 03fdbf24 authored by gg123gg's avatar gg123gg

Update c12070041.lua

parent ebbd8606
Pipeline #6606 passed with stages
in 53 minutes and 43 seconds
......@@ -67,18 +67,18 @@ end
function cm.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
end
function cm.thfilter(c)
function cm.thfilter1(c)
return c:IsAbleToGrave()
end
function cm.drop(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetFieldGroupCount(tp,0,LOCATION_EXTRA)
if #g>10 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(1-tp,cm.thfilter,tp,LOCATION_EXTRA,0,#g-10,#g-10,nil)
if g:GetCount()>0 then
Duel.SendtoGrave(g,REASON_EFFECT)
end
end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(1-tp,cm.thfilter1,1-tp,LOCATION_EXTRA,0,#g-10,#g-10,nil)
if g:GetCount()>0 then
Duel.SendtoGrave(g,REASON_EFFECT)
end
end
if #g<11 then
local sg=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_ONFIELD,e:GetHandler())
if sg:GetCount()>0 then
......
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