Commit 9b75c7d9 authored by Nemo Ma's avatar Nemo Ma

fix

parent 97b5da3f
......@@ -49,9 +49,9 @@ function cm.drop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g=Duel.SelectMatchingCard(tp,cm.filter2,tp,LOCATION_REMOVED,0,4,4,nil)
if #g>0 then
Duel.ConfirmCards(1-tp,g)
Duel.SendtoDeck(g,tp,2,REASON_EFFECT)
g=Duel.GetOperatedGroup()
Duel.ConfirmCards(1-tp,g)
Duel.ShuffleDeck(tp)
local num=g:Filter(cm.filter,nil):GetClassCount(Card.GetLevel)
num=math.min(num,2)
......
......@@ -61,8 +61,8 @@ function cm.sprop(e,tp,eg,ep,ev,re,r,rp,c)
local sg=e:GetLabelObject()
Card.SetMaterial(c,sg)
local cg=sg:Filter(Card.IsFacedown,nil)
if #cg>0 then Duel.ConfirmCards(1-tp,cg) end
Duel.SendtoDeck(sg,nil,2,REASON_COST+REASON_MATERIAL)
if #cg>0 then Duel.ConfirmCards(1-tp,cg) end
end
function cm.filter3(c,tp)
return c:IsFacedown() and c:IsPreviousControler(tp) and c:IsLocation(LOCATION_REMOVED) and c:IsAbleToDeck()
......
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