Commit b7cbecfa authored by wind2009's avatar wind2009

Fix "Silk Bomb Moth"

parent 25376d85
Pipeline #40713 passed with stages
in 4 minutes and 32 seconds
...@@ -46,7 +46,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -46,7 +46,7 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToChain() and Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)~=0 then if c:IsRelateToChain() and Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)~=0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g=Duel.SelectMatchingCard(tp,s.tdfilter,tp,LOCATION_GRAVE,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(s.tdfilter),tp,LOCATION_GRAVE,0,1,1,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.HintSelection(g) Duel.HintSelection(g)
Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_EFFECT) Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)
...@@ -54,7 +54,9 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -54,7 +54,9 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function s.dktg(e,tp,eg,ep,ev,re,r,rp,chk) function s.dktg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroupCount(tp,0,LOCATION_DECK)>0 end if chk==0 then return Duel.GetFieldGroupCount(tp,0,LOCATION_DECK)>0
and (Duel.GetLocationCount(tp,LOCATION_SZONE,1-tp,r)>0 or Duel.IsPlayerCanRemove(tp))
end
Duel.SetTargetPlayer(tp) Duel.SetTargetPlayer(tp)
end end
function s.filter(c,p) function s.filter(c,p)
......
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