Commit 3b217420 authored by gg123gg's avatar gg123gg Committed by GitHub

Update c12016025.lua

parent dd68d6e4
......@@ -17,20 +17,20 @@ function cm.filter(c)
return c:IsAbleToHand() and ce and ce:GetHandler():IsSetCard(0xfb9)
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_GRAVE,0,1,nil) end
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,3,tp,LOCATION_GRAVE)
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,cm.filter,tp,LOCATION_GRAVE,0,1,3,nil)
local g=Duel.SelectMatchingCard(tp,cm.filter,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,3,nil)
if g:GetCount()>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT)
local sc=Duel.GetOperatedGroup()
Duel.ConfirmCards(1-tp,g)
local cc=sc:Filter(Card.IsSetCard,nil,0xfb9)
if cc:GetCount()==3 then
Duel.RegisterFlagEffect(tp,120016025,RESET_PHASE+PHASE_END,0,1)
Duel.RegisterFlagEffect(tp,12016025,RESET_PHASE+PHASE_END,0,1)
end
end
end
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