Commit a47f1f65 authored by salix5's avatar salix5

fix 魂のしもべ(add str4, str5)

str4: hand or grave
str5: deck
fix #1383
parent cb185504
...@@ -30,20 +30,26 @@ function c23020408.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -30,20 +30,26 @@ 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 op=Duel.SelectOption(tp,aux.Stringid(23020408,3),aux.Stringid(23020408,4))
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(23020408,2)) Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(23020408,2))
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c23020408.filter),tp,LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil) if op==0 then
local tc=g:GetFirst() local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c23020408.filter),tp,LOCATION_HAND+LOCATION_GRAVE,0,1,1,nil)
if tc then local tc=g:GetFirst()
Duel.ShuffleDeck(tp) if tc then
if tc:IsLocation(LOCATION_DECK) then Duel.HintSelection(g)
Duel.MoveSequence(tc,0)
else
Duel.SendtoDeck(tc,nil,0,REASON_EFFECT) Duel.SendtoDeck(tc,nil,0,REASON_EFFECT)
end end
if tc:IsLocation(LOCATION_DECK) then else
Duel.ConfirmDecktop(tp,1) local g=Duel.SelectMatchingCard(tp,c23020408.filter,tp,LOCATION_DECK,0,1,1,nil)
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