Commit d770d5fb authored by TanakaKotoha's avatar TanakaKotoha

dededededededededededede

parent 75bbe956
No preview for this file type
......@@ -38,9 +38,10 @@ function cm.xyzop(e,tp,chk)
end
function cm.damcost(e,tp,eg,ep,ev,re,r,rp,chk)
local g=e:GetHandler():GetOverlayGroup()
if chk==0 then return g and g:FilterCount(Card.IsAbleToDeckAsCost,nil)>0 end
local tg=Duel.GetFieldGroupCount(tp,LOCATION_ONFIELD,LOCATION_ONFIELD)
if chk==0 then return tg and g and g:FilterCount(Card.IsAbleToDeckAsCost,nil)>0 end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local tg=g:FilterSelect(Card.IsAbleToDeckAsCost,1,63,nil)
local tg=g:FilterSelect(tp,Card.IsAbleToDeckAsCost,1,tg:GetCount(),nil)
Duel.SendtoDeck(tg,nil,2,REASON_EFFECT)
local ct=Duel.GetOperatedGroup():GetCount()
e:SetLabel(ct)
......
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