Commit 68f4f12a authored by Tachibana's avatar Tachibana

ybb

parent 109c20e4
...@@ -39,18 +39,19 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -39,18 +39,19 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_RECOVER,nil,0,0,0,0) Duel.SetOperationInfo(0,CATEGORY_RECOVER,nil,0,0,0,0)
end end
function cm.tgfilter(c) function cm.tgfilter(c)
return c:IsSetCard(0x442) and c:IsAbleToGrave() return c:IsSetCard(0x442)
end end
function cm.regop(e,tp) function cm.regop(e,tp)
local g=Duel.GetFieldGroup(tp,LOCATION_DECK,0) local g=Duel.GetFieldGroup(tp,LOCATION_DECK,0):Filter(Card.IsAbleToGrave,nil)
local g1=Duel.GetMatchingGroup(Card.IsSetCard,tp,LOCATION_GRAVE,0,nil,0x442) local g1=Duel.GetMatchingGroup(Card.IsSetCard,tp,LOCATION_GRAVE,0,nil,0x442)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
Duel.ConfirmCards(tp,g) Duel.ConfirmCards(tp,g)
if g:GetClassCount(Card.GetCode,nil)==g:GetCount() then if g:GetClassCount(Card.GetCode,nil)==g:GetCount() then
if g1:GetCount()==0 and g:Filter(cm.tgfilter,nil):GetClassCount(Card.GetCode,nil)>=7 then g=g:Filter(cm.tgfilter,nil)
if g1:GetCount()==0 and g:GetClassCount(Card.GetCode,nil)>=7 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local sg=g:SelectSubGroup(tp,cm.thfilter,true,7,7) local sg=g:SelectSubGroup(tp,aux.dncheck,true,7,7)
Duel.SendtoGrave(sg,REASON_EFFECT) Duel.SendtoGrave(sg,REASON_EFFECT)
elseif g1:FilterCount(Card.IsAbleToDeck,nil)>0 then elseif g1:FilterCount(Card.IsAbleToDeck,nil)>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
......
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