Commit f5bd501c authored by Tachibana's avatar Tachibana

watele

parents dd901a4f 03fdbf24
Pipeline #6610 failed with stages
in 15 minutes and 8 seconds
......@@ -10,9 +10,9 @@ function Sr_Farw.cannotspop(e,tp,eg,ep,ev,re,r,rp)
e1:SetCode(EVENT_SUMMON_SUCCESS)
e1:SetCondition(function(e,tp,eg,ep,ev,re,r,rp)
return eg and eg:IsPreviousLocation(LOCATION_DECK) and eg:IsExists(Sr_Farw.cannotfilter,1,nil) end)
e1:SetOperation(cm.cannotspsummon)
e1:SetOperation(Sr_Farw.cannotspsummon)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(tp,e1)
Duel.RegisterEffect(e1,tp)
return e1
end
function Sr_Farw.cannotfilter(c)
......
......@@ -71,6 +71,7 @@ function cm.thfilter1(c)
return c:IsAbleToGrave()
end
function cm.drop(e,tp,eg,ep,ev,re,r,rp,chk)
<<<<<<< HEAD
local g=Duel.GetFieldGroup(tp,0,LOCATION_EXTRA)
if #g>10 then
Debug.Message(#g)
......@@ -80,6 +81,16 @@ function cm.drop(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoGrave(g,REASON_EFFECT)
end
end
=======
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.thfilter1,1-tp,LOCATION_EXTRA,0,#g-10,#g-10,nil)
if g:GetCount()>0 then
Duel.SendtoGrave(g,REASON_EFFECT)
end
end
>>>>>>> 03fdbf24a9def495623fefcaa14d9589a16c5286
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