Commit 13d29e6a authored by TanakaKotoha's avatar TanakaKotoha

fix

parent 4e182ff0
......@@ -23,7 +23,7 @@ function cm.filter(c,code)
return srre.check_set_Duo(c) and c:IsCode(code) and c:IsAbleToHand()
end
function cm.cffilter(c,tp)
return srre.check_set_Duo(c) and not c:IsPublic() and Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil,c:GetCode())
return srre.check_set_Duo(c) and not c:IsPublic() and Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil,c:GetOriginalCodeRule())
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.cffilter,tp,LOCATION_HAND,0,1,nil,tp) end
......@@ -34,7 +34,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONFIRM)
local tt=Duel.SelectMatchingCard(tp,cm.cffilter,tp,LOCATION_HAND,0,1,1,nil,tp)
Duel.ConfirmCards(1-tp,tt)
local code=tt:GetFirst():GetOriginalCode()
local code=tt:GetFirst():GetOriginalCodeRule()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local th=Duel.SelectMatchingCard(tp,cm.filter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,63,nil,code)
Duel.SendtoHand(th,nil,REASON_EFFECT)
......
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