Commit 82d95bc8 authored by nanahira's avatar nanahira

update

parent 1c69bbda
......@@ -29,14 +29,14 @@ end
function c22231002.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)>2 end
end
function c22231002.filter(c)
function c22231002.cfilter(c)
return c22231002.IsDarkest(c)
end
function c22231002.activate(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)<3 then return false end
Duel.ConfirmDecktop(tp,3)
if Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)<3 then return end
local g=Duel.GetDecktopGroup(tp,3)
if g:IsExists(c22231002.filter,1,nil) then
Duel.ConfirmDecktop(tp,3)
if g:IsExists(c22231002.cfilter,1,nil) then
local sg=g:Select(tp,1,1,nil)
Duel.SendtoHand(sg,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,sg)
......
......@@ -45,7 +45,6 @@ function c22231201.condition(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c22231201.cfilter,1,nil) and Duel.IsExistingMatchingCard(c22231201.confilter,tp,LOCATION_MZONE,0,1,nil)
end
function c22231201.operation(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return false end
local tc=Duel.GetFieldCard(1-tp,LOCATION_GRAVE,Duel.GetFieldGroupCount(1-tp,LOCATION_GRAVE,0)-1)
if tc then
if Duel.Remove(tc,POS_FACEDOWN,REASON_EFFECT)>0 then
......
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