Commit ac4dec19 authored by Tachibana's avatar Tachibana

watele

parent e756ec1a
Pipeline #6594 passed with stages
in 35 minutes and 45 seconds
...@@ -53,6 +53,9 @@ end ...@@ -53,6 +53,9 @@ end
function cm.filter(c) function cm.filter(c)
return c:IsAbleToRemove() and c:IsSetCard(0x8fb5) return c:IsAbleToRemove() and c:IsSetCard(0x8fb5)
end end
function cm.filter1(c)
return c:IsAbleToRemove()
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToDeck() and Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_HAND,0,1,e:GetHandler()) end if chk==0 then return e:GetHandler():IsAbleToDeck() and Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_HAND,0,1,e:GetHandler()) end
Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,1,tp,LOCATION_HAND) Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,1,tp,LOCATION_HAND)
...@@ -65,6 +68,9 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -65,6 +68,9 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
c:ReverseInDeck() c:ReverseInDeck()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,cm.filter,tp,LOCATION_HAND,0,1,1,e:GetHandler()) local g=Duel.SelectMatchingCard(tp,cm.filter,tp,LOCATION_HAND,0,1,1,e:GetHandler())
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local sg=Duel.SelectMatchingCard(tp,cm.filter1,tp,LOCATION_HAND,0,1,1,e:GetHandler())
g:Merge(sg)
Duel.Remove(g,POS_FACEDOWN,REASON_EFFECT) Duel.Remove(g,POS_FACEDOWN,REASON_EFFECT)
for i=1,#g,1 do for i=1,#g,1 do
Duel.RegisterFlagEffect(tp,m,0,0,1) Duel.RegisterFlagEffect(tp,m,0,0,1)
......
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