Commit bcba57ae authored by POLYMER's avatar POLYMER

fix

parent 4fd9f405
......@@ -60,7 +60,7 @@ function c44401007.cfilter(c)
return c:IsSetCard(0xa4a) and c:IsLocation(LOCATION_MZONE) and c:IsFaceup()
end
function c44401007.gcheck(sg)
return sg:FilterCount(c44401007.cfilter,nil)>=(#sg/2)
return sg:FilterCount(c44401007.cfilter,nil)>=(#sg/2) and #sg%2==0
end
function c44401007.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end
......
......@@ -49,7 +49,7 @@ function c44401009.cfilter(c)
return c:IsSetCard(0xa4a) and c:IsFaceup() and c:IsAbleToRemove()
end
function c44401009.gcheck(sg)
return sg:FilterCount(c44401009.cfilter,nil)>=(#sg/2)
return sg:FilterCount(c44401009.cfilter,nil)>=(#sg/2) and #sg%2==0
end
function c44401009.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end
......
......@@ -75,11 +75,13 @@ function s.rtop(e,tp,eg,ep,ev,re,r,rp)
Duel.BreakEffect()
local op=0
local b1=Duel.IsExistingMatchingCard(s.tgfilter1,tp,LOCATION_DECK,0,1,nil,e,tp)
local b3=Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil,e,tp)
local b2=Duel.IsExistingMatchingCard(s.tgfilter2,tp,LOCATION_DECK,0,1,nil)
local b4=Duel.IsExistingMatchingCard(Card.IsFaceup,tp,0,LOCATION_ONFIELD,1,nil)
Duel.Hint(HINT_SELECTMSG,tp,0)
if b1 and b2 then op=Duel.SelectOption(tp,aux.Stringid(id,2),aux.Stringid(id,3))
elseif b1 then op=Duel.SelectOption(tp,aux.Stringid(id,2))
elseif b2 then Duel.SelectOption(tp,aux.Stringid(id,3)) op=1
if b1 and b2 and b3 and b4 then op=Duel.SelectOption(tp,aux.Stringid(id,2),aux.Stringid(id,3))
elseif b1 and b3 then op=Duel.SelectOption(tp,aux.Stringid(id,2))
elseif b2 and b4 then Duel.SelectOption(tp,aux.Stringid(id,3)) op=1
else return end
if op==0 then
local tg=Duel.SelectMatchingCard(tp,s.tgfilter1,tp,LOCATION_DECK,0,1,1,nil)
......
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