Commit 4d63002b authored by TanakaKotoha's avatar TanakaKotoha

foo foo

parent c485a6b8
expansions/pics/81040062.jpg

78.8 KB | W: | H:

expansions/pics/81040062.jpg

78.5 KB | W: | H:

expansions/pics/81040062.jpg
expansions/pics/81040062.jpg
expansions/pics/81040062.jpg
expansions/pics/81040062.jpg
  • 2-up
  • Swipe
  • Onion skin
...@@ -83,7 +83,7 @@ function cm.ctfilter(c) ...@@ -83,7 +83,7 @@ function cm.ctfilter(c)
return c:IsFaceup() and c:IsCode(26807000,81000000,81011000) return c:IsFaceup() and c:IsCode(26807000,81000000,81011000)
end 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)
local g=Duel.GetMatchingGroup(cm.ctfilter,tp,LOCATION_MZONE,0,nil) local g=Duel.GetMatchingGroup(cm.ctfilter,tp,LOCATION_ONFIELD,0,nil)
local ct=g:GetClassCount(Card.GetCode) local ct=g:GetClassCount(Card.GetCode)
if chk==0 then return Duel.IsPlayerCanDraw(tp) if chk==0 then return Duel.IsPlayerCanDraw(tp)
and Duel.IsExistingMatchingCard(Card.IsAbleToDeck,tp,LOCATION_HAND,0,1,e:GetHandler()) and Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>=ct end and Duel.IsExistingMatchingCard(Card.IsAbleToDeck,tp,LOCATION_HAND,0,1,e:GetHandler()) and Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>=ct end
...@@ -94,14 +94,14 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -94,14 +94,14 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER)
Duel.Hint(HINT_SELECTMSG,p,HINTMSG_TODECK) Duel.Hint(HINT_SELECTMSG,p,HINTMSG_TODECK)
local cg=Duel.SelectMatchingCard(p,Card.IsAbleToDeck,p,LOCATION_HAND,0,1,63,nil) local cg=Duel.SelectMatchingCard(p,Card.IsAbleToDeck,p,LOCATION_HAND,0,1,63,nil)
local g=Duel.GetMatchingGroup(cm.cfilter,tp,LOCATION_MZONE,0,nil) local g=Duel.GetMatchingGroup(cm.ctfilter,tp,LOCATION_ONFIELD,0,nil)
local ct=g:GetClassCount(Card.GetCode) local ct=g:GetClassCount(Card.GetCode)
local sg=cg:GetCount() local sg=cg:GetCount()+ct
if cg==0 then return end if cg==0 then return end
Duel.SendtoDeck(cg,nil,2,REASON_EFFECT) Duel.SendtoDeck(cg,nil,2,REASON_EFFECT)
Duel.ShuffleDeck(p) Duel.ShuffleDeck(p)
Duel.BreakEffect() Duel.BreakEffect()
Duel.Draw(p,sg+ct,REASON_EFFECT) Duel.Draw(p,sg,REASON_EFFECT)
end end
function cm.efilter(c) function cm.efilter(c)
return c:IsFaceup() and c:IsCode(26808000) return c:IsFaceup() and c:IsCode(26808000)
......
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