Commit edec10e8 authored by TanakaKotoha's avatar TanakaKotoha

fix 6

parent 17b1aca2
...@@ -47,11 +47,10 @@ function c10908007.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -47,11 +47,10 @@ function c10908007.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SetOperationInfo(0,CATEGORY_TODECK,g,g:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_TODECK,g,g:GetCount(),0,0)
end end
function c10908007.thop(e,tp,eg,ep,ev,re,r,rp) function c10908007.thop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,c10908007.filter,tp,LOCATION_GRAVE,0,1,1,nil)
if g:GetCount()==0 then return end
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and Duel.SendtoDeck(tc,nil,2,REASON_EFFECT)~=0 if tc:IsRelateToEffect(e) and Duel.SendtoDeck(tc,nil,2,REASON_EFFECT)~=0
and tc:IsLocation(LOCATION_DECK) then and tc:IsLocation(LOCATION_DECK) then
Duel.ShuffleDeck(tp)
Duel.Draw(tp,1,REASON_EFFECT) Duel.Draw(tp,1,REASON_EFFECT)
end end
end end
...@@ -77,7 +76,7 @@ function c10908007.cfilter(c) ...@@ -77,7 +76,7 @@ function c10908007.cfilter(c)
return c:GetCode()==10908007 return c:GetCode()==10908007
end end
function c10908007.condition2(e,tp,eg,ep,ev,re,r,rp) function c10908007.condition2(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c10908007.cfilter,tp,LOCATION_GRAVE,0,1,nil) return Duel.IsExistingMatchingCard(c10908007.cfilter,tp,LOCATION_GRAVE,0,2,nil)
end end
function c10908007.repfilter(c,tp) function c10908007.repfilter(c,tp)
return c:IsFaceup() and c:IsSetCard(0x23b) and c:IsLocation(LOCATION_MZONE) return c:IsFaceup() and c:IsSetCard(0x23b) and c:IsLocation(LOCATION_MZONE)
......
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