Commit 4c7d5cd6 authored by salix5's avatar salix5

revert

parent eb6714bb
...@@ -30,35 +30,20 @@ function c23020408.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -30,35 +30,20 @@ function c23020408.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,1,tp,LOCATION_HAND+LOCATION_GRAVE) Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,1,tp,LOCATION_HAND+LOCATION_GRAVE)
end end
function c23020408.activate(e,tp,eg,ep,ev,re,r,rp) function c23020408.activate(e,tp,eg,ep,ev,re,r,rp)
local b1=Duel.IsExistingMatchingCard(aux.NecroValleyFilter(c23020408.filter),tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil)
local b2=Duel.IsExistingMatchingCard(c23020408.filter,tp,LOCATION_DECK,0,1,nil)
local op=0
if b1 and b2 then
op=Duel.SelectOption(tp,aux.Stringid(23020408,3),aux.Stringid(23020408,4))
elseif b1 then
op=0
else
op=1
end
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(23020408,2)) Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(23020408,2))
if op==0 then local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c23020408.filter),tp,LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c23020408.filter),tp,LOCATION_HAND+LOCATION_GRAVE,0,1,1,nil) local tc=g:GetFirst()
local tc=g:GetFirst() if tc then
if tc then Duel.ShuffleDeck(tp)
Duel.HintSelection(g) if tc:IsLocation(LOCATION_DECK) then
Duel.MoveSequence(tc,0)
else
Duel.SendtoDeck(tc,nil,0,REASON_EFFECT) Duel.SendtoDeck(tc,nil,0,REASON_EFFECT)
end end
else if tc:IsLocation(LOCATION_DECK) then
local g=Duel.SelectMatchingCard(tp,c23020408.filter,tp,LOCATION_DECK,0,1,1,nil) Duel.ConfirmDecktop(tp,1)
local tc=g:GetFirst()
if tc then
Duel.ShuffleDeck(tp)
Duel.MoveSequence(tc,0)
end end
end end
if tc and tc:IsLocation(LOCATION_DECK) then
Duel.ConfirmDecktop(tp,1)
end
end end
function c23020408.cfilter(c) function c23020408.cfilter(c)
return (c:IsCode(46986414,38033121) or (c:IsSetCard(0x139) and c:IsType(TYPE_MONSTER))) and (c:IsFaceup() or c:IsLocation(LOCATION_GRAVE)) return (c:IsCode(46986414,38033121) or (c:IsSetCard(0x139) and c:IsType(TYPE_MONSTER))) and (c:IsFaceup() or c:IsLocation(LOCATION_GRAVE))
......
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