Commit 3ef354c1 authored by TanakaKotoha's avatar TanakaKotoha

wdnmd

parent 68f3eabe
...@@ -64,8 +64,8 @@ end ...@@ -64,8 +64,8 @@ end
function c16200001.efilter(e,c) function c16200001.efilter(e,c)
return aux.IsCodeListed(c,16200003) and c:IsFaceup() return aux.IsCodeListed(c,16200003) and c:IsFaceup()
end end
function c16200001.efilter1(e,ct) function c16200001.efilter1(e,c)
return aux.IsCodeListed(e:GetHandler(),16200003) and e:GetHandler():IsFaceup() return aux.IsCodeListed(c,16200003) and c:IsFaceup()
end end
function c16200001.efilter2(e,re) function c16200001.efilter2(e,re)
return e:GetOwnerPlayer()~=re:GetOwnerPlayer() return e:GetOwnerPlayer()~=re:GetOwnerPlayer()
...@@ -96,10 +96,12 @@ function c16200001.op1(e,tp,eg,ep,ev,re,r,rp) ...@@ -96,10 +96,12 @@ function c16200001.op1(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local gn=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e) local gn=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e)
if gn:GetCount()<1 then return end if gn:GetCount()<1 then return end
local num=Duel.SendtoDeck(gn,nil,2,REASON_EFFECT) Duel.SendtoDeck(gn,nil,0,REASON_EFFECT)
local g=Duel.GetOperatedGroup()
Duel.ShuffleDeck(tp) Duel.ShuffleDeck(tp)
if num<1 then return end local ct=g:FilterCount(Card.IsLocation,nil,LOCATION_DECK+LOCATION_EXTRA)
if Duel.IsPlayerCanDraw(tp,2) then if ct==gn:GetCount() then
Duel.BreakEffect()
Duel.Draw(tp,2,REASON_EFFECT) Duel.Draw(tp,2,REASON_EFFECT)
end end
end end
...@@ -123,8 +125,8 @@ function c16200001.tg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -123,8 +125,8 @@ function c16200001.tg2(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,2) Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,2)
end end
-- --
function c16200001.tfilter3(c) function c16200001.tfilter3(c,tp)
return c:IsAbleToRemove() return c:IsAbleToRemove(tp,POS_FACEDOWN,REASON_EFFECT)
end end
function c16200001.op2(e,tp,eg,ep,ev,re,r,rp) function c16200001.op2(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
...@@ -132,6 +134,7 @@ function c16200001.op2(e,tp,eg,ep,ev,re,r,rp) ...@@ -132,6 +134,7 @@ function c16200001.op2(e,tp,eg,ep,ev,re,r,rp)
if gn:GetCount()<1 then return end if gn:GetCount()<1 then return end
local num=Duel.Destroy(gn,REASON_EFFECT) local num=Duel.Destroy(gn,REASON_EFFECT)
if num<1 then return end if num<1 then return end
local g=Duel.SelectTarget(tp,c16200001.tfilter3,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,num,nil) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,c16200001.tfilter3,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,num,nil,tp)
Duel.Remove(g,POS_FACEDOWN,REASON_EFFECT) Duel.Remove(g,POS_FACEDOWN,REASON_EFFECT)
end end
\ No newline at end of file
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