Commit 3ef354c1 authored by TanakaKotoha's avatar TanakaKotoha

wdnmd

parent 68f3eabe
......@@ -64,8 +64,8 @@ end
function c16200001.efilter(e,c)
return aux.IsCodeListed(c,16200003) and c:IsFaceup()
end
function c16200001.efilter1(e,ct)
return aux.IsCodeListed(e:GetHandler(),16200003) and e:GetHandler():IsFaceup()
function c16200001.efilter1(e,c)
return aux.IsCodeListed(c,16200003) and c:IsFaceup()
end
function c16200001.efilter2(e,re)
return e:GetOwnerPlayer()~=re:GetOwnerPlayer()
......@@ -96,10 +96,12 @@ function c16200001.op1(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local gn=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e)
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)
if num<1 then return end
if Duel.IsPlayerCanDraw(tp,2) then
local ct=g:FilterCount(Card.IsLocation,nil,LOCATION_DECK+LOCATION_EXTRA)
if ct==gn:GetCount() then
Duel.BreakEffect()
Duel.Draw(tp,2,REASON_EFFECT)
end
end
......@@ -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)
end
--
function c16200001.tfilter3(c)
return c:IsAbleToRemove()
function c16200001.tfilter3(c,tp)
return c:IsAbleToRemove(tp,POS_FACEDOWN,REASON_EFFECT)
end
function c16200001.op2(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......@@ -132,6 +134,7 @@ function c16200001.op2(e,tp,eg,ep,ev,re,r,rp)
if gn:GetCount()<1 then return end
local num=Duel.Destroy(gn,REASON_EFFECT)
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)
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