Commit 16846614 authored by GuGu's avatar GuGu

Update c23510.lua

parent 9bc74bf8
Pipeline #34047 passed with stage
in 14 seconds
......@@ -46,12 +46,16 @@ function c23510.target(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
local mg=e:GetHandler():GetMaterial():Filter(c23510.filter,nil)
if chk==0 then return mg:GetCount()>0 end
Duel.SetTargetCard(e:GetHandler():GetMaterial())
Duel.SetOperationInfo(0,CATEGORY_TODECK,mg,mg:GetCount(),0,0)
end
function c23510.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local mg=e:GetHandler():GetMaterial():Filter(c23510.filter,nil)
Duel.SendtoDeck(mg,nil,1,REASON_EFFECT)
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS)
local mg=g:Filter(Card.IsRelateToEffect,nil,e):Filter(c23510.filter,nil)
if mg:GetCount()>0 then
Duel.SendtoDeck(mg,nil,SEQ_DECKBOTTOM,REASON_EFFECT)
end
end
function c23510.cfilter(c)
return c:IsAbleToHandAsCost() and c:IsFaceup()
......
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