Commit d14f8557 authored by mercury233's avatar mercury233

fix

parent 9bb3aac7
...@@ -57,7 +57,7 @@ end ...@@ -57,7 +57,7 @@ end
function c100200163.rmfilter2(c,e,tp) function c100200163.rmfilter2(c,e,tp)
local type=bit.band(c:GetType(),TYPE_FUSION+TYPE_SYNCHRO+TYPE_XYZ+TYPE_LINK) local type=bit.band(c:GetType(),TYPE_FUSION+TYPE_SYNCHRO+TYPE_XYZ+TYPE_LINK)
return c:IsType(TYPE_FUSION+TYPE_SYNCHRO+TYPE_XYZ+TYPE_LINK) and c:IsAbleToRemove() return c:IsType(TYPE_FUSION+TYPE_SYNCHRO+TYPE_XYZ+TYPE_LINK) and c:IsAbleToRemove()
and Duel.IsExistingMatchingCard(c100200163.spfilter,tp,LOCATION_GRAVE,0,1,c,type,e,tp) and Duel.IsExistingMatchingCard(c100200163.spfilter,tp,LOCATION_GRAVE,0,1,c,e,tp,type)
end end
function c100200163.spfilter(c,e,tp,type) function c100200163.spfilter(c,e,tp,type)
return c:IsType(TYPE_FUSION+TYPE_SYNCHRO+TYPE_XYZ+TYPE_LINK) and not c:IsType(type) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsType(TYPE_FUSION+TYPE_SYNCHRO+TYPE_XYZ+TYPE_LINK) and not c:IsType(type) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -35,10 +35,10 @@ function c101009065.reptg1(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -35,10 +35,10 @@ function c101009065.reptg1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return eg:IsExists(c101009065.repfilter1,1,c,tp) if chk==0 then return eg:IsExists(c101009065.repfilter1,1,c,tp)
and c:IsDestructable(e) and not c:IsStatus(STATUS_DESTROY_CONFIRMED) end and c:IsDestructable(e) and not c:IsStatus(STATUS_DESTROY_CONFIRMED) end
if Duel.SelectEffectYesNo(tp,c,96) then if Duel.SelectEffectYesNo(tp,c,96) then
local sg=eg local sg=eg:Filter(c101009065.repfilter1,c,tp)
if eg:FilterCount(c101009065.repfilter1,1,c,tp)>1 then if sg:GetCount()>1 then
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(101009065,0)) Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(101009065,0))
sg=eg:FilterSelect(tp,c101009065.repfilter1,1,1,c,tp) sg=sg:Select(tp,1,1,nil)
end end
e:SetLabelObject(sg) e:SetLabelObject(sg)
return true return true
...@@ -59,10 +59,10 @@ function c101009065.reptg2(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -59,10 +59,10 @@ function c101009065.reptg2(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return eg:IsExists(c101009065.repfilter2,1,nil,tp) and c:IsAbleToRemove() end if chk==0 then return eg:IsExists(c101009065.repfilter2,1,nil,tp) and c:IsAbleToRemove() end
if Duel.SelectEffectYesNo(tp,c,96) then if Duel.SelectEffectYesNo(tp,c,96) then
local sg=eg local sg=eg:Filter(c101009065.repfilter2,nil,tp)
if eg:FilterCount(c101009065.repfilter2,1,nil,tp)>1 then if sg:GetCount()>1 then
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(101009065,0)) Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(101009065,0))
sg=eg:FilterSelect(tp,c101009065.repfilter2,1,1,nil,tp) sg=sg:Select(tp,1,1,nil)
end end
e:SetLabelObject(sg) e:SetLabelObject(sg)
return true return true
......
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