Commit 1951ffbf authored by Amiya's avatar Amiya

修复

parent d77d28b2
Pipeline #33014 passed with stages
in 1 minute and 23 seconds
...@@ -52,7 +52,7 @@ function s.setop(e,tp,eg,ep,ev,re,r,rp) ...@@ -52,7 +52,7 @@ function s.setop(e,tp,eg,ep,ev,re,r,rp)
end end
function s.thfilter(c) function s.thfilter(c)
return c:IsRace(RACE_SPELLCASTER) and c:IsSetCard(0x2c7) return c:IsRace(RACE_SPELLCASTER) and c:IsSetCard(0x2c7)
and c:IsAbleToHand and c:IsAbleToHand()
end end
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -41,13 +41,14 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -41,13 +41,14 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
tc:RegisterEffect(e2) tc:RegisterEffect(e2)
if Duel.IsExistingMatchingCard(s.tdfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil) if Duel.IsExistingMatchingCard(s.tdfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil)
and Duel.SelectYesNo(tp,aux.Stringid(id,1)) then and Duel.SelectYesNo(tp,aux.Stringid(id,1)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local gs=Duel.SelectMatchingCard(tp,s.tdfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,1,nil) local gs=Duel.SelectMatchingCard(tp,s.tdfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,1,nil)
local dtc=sg:GetFirst() local dtc=sg:GetFirst()
if dtc and Duel.SendtoDeck(dtc,nil,SEQ_DECKBOTTOM,REASON_EFFECT)>0 if dtc and Duel.SendtoDeck(dtc,nil,SEQ_DECKBOTTOM,REASON_EFFECT)>0
and dtc:IsLocation(LOCATION_DECK+LOCATION_EXTRA) then and dtc:IsLocation(LOCATION_DECK+LOCATION_EXTRA) then
Duel.BreakEffect() Duel.BreakEffect()
Duel.Draw(tp,1,REASON_EFFECT) Duel.Draw(tp,1,REASON_EFFECT)
end
end end
end end
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