Commit eb9fbd13 authored by gg123gg's avatar gg123gg

Update c12070041.lua

parent 452e74f5
Pipeline #6604 passed with stages
in 53 minutes and 49 seconds
...@@ -71,10 +71,10 @@ function cm.thfilter(c) ...@@ -71,10 +71,10 @@ function cm.thfilter(c)
return c:IsAbleToGrave() return c:IsAbleToGrave()
end end
function cm.drop(e,tp,eg,ep,ev,re,r,rp,chk) function cm.drop(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetFieldGroup(tp,LOCATION_EXTRA) local g=Duel.GetFieldGroupCount(tp,0,LOCATION_EXTRA)
if #g>10 then if #g>10 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,cm.thfilter,tp,LOCATION_EXTRA,0,#g-10,#g-10,nil) local g=Duel.SelectMatchingCard(1-tp,cm.thfilter,tp,LOCATION_EXTRA,0,#g-10,#g-10,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SendtoGrave(g,REASON_EFFECT) Duel.SendtoGrave(g,REASON_EFFECT)
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