Commit c737c048 authored by DailyShana's avatar DailyShana

update

parent 6cf7f22f
...@@ -52,7 +52,7 @@ function c1561110.splimit(e,se,sp,st) ...@@ -52,7 +52,7 @@ function c1561110.splimit(e,se,sp,st)
return not e:GetHandler():IsLocation(LOCATION_EXTRA) return not e:GetHandler():IsLocation(LOCATION_EXTRA)
end end
function c1561110.rmfilter(c) function c1561110.rmfilter(c)
return c:IsAbleToRemoveAsCost() and c:IsCanBeFusionMaterial(nil,true) return c:IsAbleToRemoveAsCost() and c:IsCanBeFusionMaterial()
end end
function c1561110.rmfilter1(c,mg,ft) function c1561110.rmfilter1(c,mg,ft)
local mg2=mg:Clone() local mg2=mg:Clone()
......
...@@ -59,19 +59,19 @@ function c17032740.spfilter1(c,mg,ft) ...@@ -59,19 +59,19 @@ function c17032740.spfilter1(c,mg,ft)
local mg2=mg:Clone() local mg2=mg:Clone()
mg2:RemoveCard(c) mg2:RemoveCard(c)
if c:IsLocation(LOCATION_MZONE) then ft=ft+1 end if c:IsLocation(LOCATION_MZONE) then ft=ft+1 end
return ft>=-1 and c:IsFusionCode(89943723) and c:IsAbleToDeckOrExtraAsCost() and c:IsCanBeFusionMaterial(nil,true) return ft>=-1 and c:IsFusionCode(89943723) and c:IsAbleToDeckOrExtraAsCost() and c:IsCanBeFusionMaterial()
and mg2:IsExists(c17032740.spfilter2,1,nil,mg2,ft) and mg2:IsExists(c17032740.spfilter2,1,nil,mg2,ft)
end end
function c17032740.spfilter2(c,mg,ft) function c17032740.spfilter2(c,mg,ft)
local mg2=mg:Clone() local mg2=mg:Clone()
mg2:RemoveCard(c) mg2:RemoveCard(c)
if c:IsLocation(LOCATION_MZONE) then ft=ft+1 end if c:IsLocation(LOCATION_MZONE) then ft=ft+1 end
return ft>=0 and c:IsFusionCode(43237273) and c:IsAbleToDeckOrExtraAsCost() and c:IsCanBeFusionMaterial(nil,true) return ft>=0 and c:IsFusionCode(43237273) and c:IsAbleToDeckOrExtraAsCost() and c:IsCanBeFusionMaterial()
and mg2:IsExists(c17032740.spfilter3,1,nil,ft) and mg2:IsExists(c17032740.spfilter3,1,nil,ft)
end end
function c17032740.spfilter3(c,ft) function c17032740.spfilter3(c,ft)
if c:IsLocation(LOCATION_MZONE) then ft=ft+1 end if c:IsLocation(LOCATION_MZONE) then ft=ft+1 end
return ft>=1 and c:IsFusionCode(17732278) and c:IsAbleToDeckOrExtraAsCost() and c:IsCanBeFusionMaterial(nil,true) return ft>=1 and c:IsFusionCode(17732278) and c:IsAbleToDeckOrExtraAsCost() and c:IsCanBeFusionMaterial()
end end
function c17032740.spcon(e,c) function c17032740.spcon(e,c)
if c==nil then return true end if c==nil then return true end
......
...@@ -38,7 +38,7 @@ function c27346636.splimit(e,se,sp,st) ...@@ -38,7 +38,7 @@ function c27346636.splimit(e,se,sp,st)
return e:GetHandler():GetLocation()~=LOCATION_EXTRA return e:GetHandler():GetLocation()~=LOCATION_EXTRA
end end
function c27346636.spfilter1(c,tp) function c27346636.spfilter1(c,tp)
return c:IsFusionCode(78868776) and c:IsAbleToDeckOrExtraAsCost() and c:IsCanBeFusionMaterial(nil,true) return c:IsFusionCode(78868776) and c:IsAbleToDeckOrExtraAsCost() and c:IsCanBeFusionMaterial()
and Duel.IsExistingMatchingCard(c27346636.spfilter2,tp,LOCATION_MZONE,0,2,c) and Duel.IsExistingMatchingCard(c27346636.spfilter2,tp,LOCATION_MZONE,0,2,c)
end end
function c27346636.spfilter2(c) function c27346636.spfilter2(c)
......
...@@ -50,9 +50,9 @@ function c28016193.fscon(e,g,gc,chkfnf) ...@@ -50,9 +50,9 @@ function c28016193.fscon(e,g,gc,chkfnf)
g:Merge(fc:GetEquipGroup():Filter(Card.IsControler,nil,tp)) g:Merge(fc:GetEquipGroup():Filter(Card.IsControler,nil,tp))
fc=fg:GetNext() fc=fg:GetNext()
end end
local mg=g:Filter(Card.IsCanBeFusionMaterial,nil,e:GetHandler(),true) local mg=g:Filter(Card.IsCanBeFusionMaterial,nil,e:GetHandler())
if gc then if gc then
if not gc:IsCanBeFusionMaterial(e:GetHandler(),true) then return false end if not gc:IsCanBeFusionMaterial(e:GetHandler()) then return false end
return f(gc) and mg:IsExists(f,cc-1,gc) end return f(gc) and mg:IsExists(f,cc-1,gc) end
local g1=mg:Filter(f,nil) local g1=mg:Filter(f,nil)
if chkf~=PLAYER_NONE then if chkf~=PLAYER_NONE then
...@@ -69,7 +69,7 @@ function c28016193.fsop(e,tp,eg,ep,ev,re,r,rp,gc,chkfnf) ...@@ -69,7 +69,7 @@ function c28016193.fsop(e,tp,eg,ep,ev,re,r,rp,gc,chkfnf)
eg:Merge(fc:GetEquipGroup():Filter(Card.IsControler,nil,tp)) eg:Merge(fc:GetEquipGroup():Filter(Card.IsControler,nil,tp))
fc=fg:GetNext() fc=fg:GetNext()
end end
local g=eg:Filter(Card.IsCanBeFusionMaterial,nil,e:GetHandler(),true) local g=eg:Filter(Card.IsCanBeFusionMaterial,nil,e:GetHandler())
if gc then if gc then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FMATERIAL) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FMATERIAL)
local g1=g:FilterSelect(tp,f,cc-1,cc-1,gc) local g1=g:FilterSelect(tp,f,cc-1,cc-1,gc)
......
...@@ -53,9 +53,9 @@ function c4688231.fscon(e,g,gc,chkfnf) ...@@ -53,9 +53,9 @@ function c4688231.fscon(e,g,gc,chkfnf)
g:Merge(fc:GetEquipGroup():Filter(Card.IsControler,nil,tp)) g:Merge(fc:GetEquipGroup():Filter(Card.IsControler,nil,tp))
fc=fg:GetNext() fc=fg:GetNext()
end end
local mg=g:Filter(Card.IsCanBeFusionMaterial,nil,e:GetHandler(),true) local mg=g:Filter(Card.IsCanBeFusionMaterial,nil,e:GetHandler())
if gc then if gc then
if not gc:IsCanBeFusionMaterial(e:GetHandler(),true) then return false end if not gc:IsCanBeFusionMaterial(e:GetHandler()) then return false end
return (f1(gc) and mg:IsExists(f2,1,gc)) return (f1(gc) and mg:IsExists(f2,1,gc))
or (f2(gc) and mg:IsExists(f1,1,gc)) end or (f2(gc) and mg:IsExists(f1,1,gc)) end
local g1=Group.CreateGroup() local g2=Group.CreateGroup() local fs=false local g1=Group.CreateGroup() local g2=Group.CreateGroup() local fs=false
...@@ -79,7 +79,7 @@ function c4688231.fsop(e,tp,eg,ep,ev,re,r,rp,gc,chkfnf) ...@@ -79,7 +79,7 @@ function c4688231.fsop(e,tp,eg,ep,ev,re,r,rp,gc,chkfnf)
eg:Merge(fc:GetEquipGroup():Filter(Card.IsControler,nil,tp)) eg:Merge(fc:GetEquipGroup():Filter(Card.IsControler,nil,tp))
fc=fg:GetNext() fc=fg:GetNext()
end end
local g=eg:Filter(Card.IsCanBeFusionMaterial,nil,e:GetHandler(),true) local g=eg:Filter(Card.IsCanBeFusionMaterial,nil,e:GetHandler())
if gc then if gc then
local sg=Group.CreateGroup() local sg=Group.CreateGroup()
if f1(gc) then sg:Merge(g:Filter(f2,gc)) end if f1(gc) then sg:Merge(g:Filter(f2,gc)) end
......
...@@ -46,7 +46,7 @@ function c48156348.splimit(e,se,sp,st) ...@@ -46,7 +46,7 @@ function c48156348.splimit(e,se,sp,st)
return e:GetHandler():GetLocation()~=LOCATION_EXTRA return e:GetHandler():GetLocation()~=LOCATION_EXTRA
end end
function c48156348.spfilter1(c,tp) function c48156348.spfilter1(c,tp)
return c:IsFusionCode(41470137) and c:IsAbleToDeckOrExtraAsCost() and c:IsCanBeFusionMaterial(nil,true) return c:IsFusionCode(41470137) and c:IsAbleToDeckOrExtraAsCost() and c:IsCanBeFusionMaterial()
and Duel.IsExistingMatchingCard(c48156348.spfilter2,tp,LOCATION_MZONE,0,1,c) and Duel.IsExistingMatchingCard(c48156348.spfilter2,tp,LOCATION_MZONE,0,1,c)
end end
function c48156348.spfilter2(c) function c48156348.spfilter2(c)
......
...@@ -67,19 +67,19 @@ function c49352945.spfilter1(c,mg,ft) ...@@ -67,19 +67,19 @@ function c49352945.spfilter1(c,mg,ft)
local mg2=mg:Clone() local mg2=mg:Clone()
mg2:RemoveCard(c) mg2:RemoveCard(c)
if c:IsLocation(LOCATION_MZONE) then ft=ft+1 end if c:IsLocation(LOCATION_MZONE) then ft=ft+1 end
return ft>=-1 and c:IsFusionCode(89943723) and c:IsAbleToDeckOrExtraAsCost() and c:IsCanBeFusionMaterial(nil,true) return ft>=-1 and c:IsFusionCode(89943723) and c:IsAbleToDeckOrExtraAsCost() and c:IsCanBeFusionMaterial()
and mg2:IsExists(c49352945.spfilter2,1,nil,mg2,ft) and mg2:IsExists(c49352945.spfilter2,1,nil,mg2,ft)
end end
function c49352945.spfilter2(c,mg,ft) function c49352945.spfilter2(c,mg,ft)
local mg2=mg:Clone() local mg2=mg:Clone()
mg2:RemoveCard(c) mg2:RemoveCard(c)
if c:IsLocation(LOCATION_MZONE) then ft=ft+1 end if c:IsLocation(LOCATION_MZONE) then ft=ft+1 end
return ft>=0 and c:IsFusionCode(17955766) and c:IsAbleToDeckOrExtraAsCost() and c:IsCanBeFusionMaterial(nil,true) return ft>=0 and c:IsFusionCode(17955766) and c:IsAbleToDeckOrExtraAsCost() and c:IsCanBeFusionMaterial()
and mg2:IsExists(c49352945.spfilter3,1,nil,ft) and mg2:IsExists(c49352945.spfilter3,1,nil,ft)
end end
function c49352945.spfilter3(c,ft) function c49352945.spfilter3(c,ft)
if c:IsLocation(LOCATION_MZONE) then ft=ft+1 end if c:IsLocation(LOCATION_MZONE) then ft=ft+1 end
return ft>=1 and c:IsFusionCode(54959865) and c:IsAbleToDeckOrExtraAsCost() and c:IsCanBeFusionMaterial(nil,true) return ft>=1 and c:IsFusionCode(54959865) and c:IsAbleToDeckOrExtraAsCost() and c:IsCanBeFusionMaterial()
end end
function c49352945.spcon(e,c) function c49352945.spcon(e,c)
if c==nil then return true end if c==nil then return true end
......
...@@ -29,9 +29,9 @@ function c54401832.fscon(e,g,gc,chkfnf) ...@@ -29,9 +29,9 @@ function c54401832.fscon(e,g,gc,chkfnf)
g:Merge(fc:GetEquipGroup():Filter(Card.IsControler,nil,tp)) g:Merge(fc:GetEquipGroup():Filter(Card.IsControler,nil,tp))
fc=fg:GetNext() fc=fg:GetNext()
end end
local mg=g:Filter(Card.IsCanBeFusionMaterial,nil,e:GetHandler(),true) local mg=g:Filter(Card.IsCanBeFusionMaterial,nil,e:GetHandler())
if gc then if gc then
if not gc:IsCanBeFusionMaterial(e:GetHandler(),true) then return false end if not gc:IsCanBeFusionMaterial(e:GetHandler()) then return false end
if aux.FConditionFilterFFR(gc,f1,f2,mg,minc,chkf) then if aux.FConditionFilterFFR(gc,f1,f2,mg,minc,chkf) then
return true return true
elseif f2(gc) then elseif f2(gc) then
...@@ -52,7 +52,7 @@ function c54401832.fsop(e,tp,eg,ep,ev,re,r,rp,gc,chkfnf) ...@@ -52,7 +52,7 @@ function c54401832.fsop(e,tp,eg,ep,ev,re,r,rp,gc,chkfnf)
eg:Merge(fc:GetEquipGroup():Filter(Card.IsControler,nil,tp)) eg:Merge(fc:GetEquipGroup():Filter(Card.IsControler,nil,tp))
fc=fg:GetNext() fc=fg:GetNext()
end end
local g=eg:Filter(Card.IsCanBeFusionMaterial,nil,e:GetHandler(),true) local g=eg:Filter(Card.IsCanBeFusionMaterial,nil,e:GetHandler())
local minct=2 local minct=2
local maxct=2 local maxct=2
if gc then if gc then
......
...@@ -61,9 +61,9 @@ function c77693536.fscon(e,g,gc,chkfnf) ...@@ -61,9 +61,9 @@ function c77693536.fscon(e,g,gc,chkfnf)
g:Merge(fc:GetEquipGroup():Filter(Card.IsControler,nil,tp)) g:Merge(fc:GetEquipGroup():Filter(Card.IsControler,nil,tp))
fc=fg:GetNext() fc=fg:GetNext()
end end
local mg=g:Filter(Card.IsCanBeFusionMaterial,nil,e:GetHandler(),true) local mg=g:Filter(Card.IsCanBeFusionMaterial,nil,e:GetHandler())
if gc then if gc then
if not gc:IsCanBeFusionMaterial(e:GetHandler(),true) then return false end if not gc:IsCanBeFusionMaterial(e:GetHandler()) then return false end
return (f1(gc) and mg:IsExists(f2,1,gc)) return (f1(gc) and mg:IsExists(f2,1,gc))
or (f2(gc) and mg:IsExists(f1,1,gc)) end or (f2(gc) and mg:IsExists(f1,1,gc)) end
local g1=Group.CreateGroup() local g2=Group.CreateGroup() local fs=false local g1=Group.CreateGroup() local g2=Group.CreateGroup() local fs=false
...@@ -87,7 +87,7 @@ function c77693536.fsop(e,tp,eg,ep,ev,re,r,rp,gc,chkfnf) ...@@ -87,7 +87,7 @@ function c77693536.fsop(e,tp,eg,ep,ev,re,r,rp,gc,chkfnf)
eg:Merge(fc:GetEquipGroup():Filter(Card.IsControler,nil,tp)) eg:Merge(fc:GetEquipGroup():Filter(Card.IsControler,nil,tp))
fc=fg:GetNext() fc=fg:GetNext()
end end
local g=eg:Filter(Card.IsCanBeFusionMaterial,nil,e:GetHandler(),true) local g=eg:Filter(Card.IsCanBeFusionMaterial,nil,e:GetHandler())
if gc then if gc then
local sg=Group.CreateGroup() local sg=Group.CreateGroup()
if f1(gc) then sg:Merge(g:Filter(f2,gc)) end if f1(gc) then sg:Merge(g:Filter(f2,gc)) end
......
...@@ -31,7 +31,7 @@ function c79229522.splimit(e,se,sp,st) ...@@ -31,7 +31,7 @@ function c79229522.splimit(e,se,sp,st)
return e:GetHandler():GetLocation()~=LOCATION_EXTRA return e:GetHandler():GetLocation()~=LOCATION_EXTRA
end end
function c79229522.spfilter1(c,tp,ft) function c79229522.spfilter1(c,tp,ft)
if c:IsFusionCode(70095154) and c:IsAbleToGraveAsCost() and c:IsCanBeFusionMaterial(nil,true) and (c:IsControler(tp) or c:IsFaceup()) then if c:IsFusionCode(70095154) and c:IsAbleToGraveAsCost() and c:IsCanBeFusionMaterial() and (c:IsControler(tp) or c:IsFaceup()) then
if ft>0 or (c:IsControler(tp) and c:IsLocation(LOCATION_MZONE)) then if ft>0 or (c:IsControler(tp) and c:IsLocation(LOCATION_MZONE)) then
return Duel.IsExistingMatchingCard(c79229522.spfilter2,tp,LOCATION_MZONE,LOCATION_MZONE,1,c,tp) return Duel.IsExistingMatchingCard(c79229522.spfilter2,tp,LOCATION_MZONE,LOCATION_MZONE,1,c,tp)
else else
......
...@@ -10,10 +10,10 @@ function c80033124.initial_effect(c) ...@@ -10,10 +10,10 @@ function c80033124.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c80033124.ffilter0(c) function c80033124.ffilter0(c)
return c:IsCode(41230939,77625948,3019642) and c:IsCanBeFusionMaterial(nil,true) and c:IsAbleToDeck() return c:IsCode(41230939,77625948,3019642) and c:IsCanBeFusionMaterial() and c:IsAbleToDeck()
end end
function c80033124.ffilter(c,e) function c80033124.ffilter(c,e)
return c:IsCode(41230939,77625948,3019642) and c:IsCanBeFusionMaterial(nil,true) and c:IsAbleToDeck() return c:IsCode(41230939,77625948,3019642) and c:IsCanBeFusionMaterial() and c:IsAbleToDeck()
and not c:IsImmuneToEffect(e) and not c:IsImmuneToEffect(e)
end end
function c80033124.spfilter(c,e,tp) function c80033124.spfilter(c,e,tp)
......
...@@ -28,9 +28,9 @@ function c81612598.fscon(e,g,gc,chkfnf) ...@@ -28,9 +28,9 @@ function c81612598.fscon(e,g,gc,chkfnf)
g:Merge(fc:GetEquipGroup():Filter(Card.IsControler,nil,tp)) g:Merge(fc:GetEquipGroup():Filter(Card.IsControler,nil,tp))
fc=fg:GetNext() fc=fg:GetNext()
end end
local mg=g:Filter(Card.IsCanBeFusionMaterial,nil,e:GetHandler(),true) local mg=g:Filter(Card.IsCanBeFusionMaterial,nil,e:GetHandler())
if gc then if gc then
if not gc:IsCanBeFusionMaterial(e:GetHandler(),true) then return false end if not gc:IsCanBeFusionMaterial(e:GetHandler()) then return false end
return (f1(gc) and mg:IsExists(f2,1,gc)) return (f1(gc) and mg:IsExists(f2,1,gc))
or (f2(gc) and mg:IsExists(f1,1,gc)) end or (f2(gc) and mg:IsExists(f1,1,gc)) end
local g1=Group.CreateGroup() local g2=Group.CreateGroup() local fs=false local g1=Group.CreateGroup() local g2=Group.CreateGroup() local fs=false
...@@ -54,7 +54,7 @@ function c81612598.fsop(e,tp,eg,ep,ev,re,r,rp,gc,chkfnf) ...@@ -54,7 +54,7 @@ function c81612598.fsop(e,tp,eg,ep,ev,re,r,rp,gc,chkfnf)
eg:Merge(fc:GetEquipGroup():Filter(Card.IsControler,nil,tp)) eg:Merge(fc:GetEquipGroup():Filter(Card.IsControler,nil,tp))
fc=fg:GetNext() fc=fg:GetNext()
end end
local g=eg:Filter(Card.IsCanBeFusionMaterial,nil,e:GetHandler(),true) local g=eg:Filter(Card.IsCanBeFusionMaterial,nil,e:GetHandler())
if gc then if gc then
local sg=Group.CreateGroup() local sg=Group.CreateGroup()
if f1(gc) then sg:Merge(g:Filter(f2,gc)) end if f1(gc) then sg:Merge(g:Filter(f2,gc)) end
......
...@@ -47,7 +47,7 @@ function c90957527.splimit(e,se,sp,st) ...@@ -47,7 +47,7 @@ function c90957527.splimit(e,se,sp,st)
return e:GetHandler():GetLocation()~=LOCATION_EXTRA return e:GetHandler():GetLocation()~=LOCATION_EXTRA
end end
function c90957527.spfilter1(c,tp) function c90957527.spfilter1(c,tp)
return c:IsFusionCode(79580323) and c:IsAbleToDeckOrExtraAsCost() and c:IsCanBeFusionMaterial(nil,true) return c:IsFusionCode(79580323) and c:IsAbleToDeckOrExtraAsCost() and c:IsCanBeFusionMaterial()
and Duel.IsExistingMatchingCard(c90957527.spfilter2,tp,LOCATION_MZONE,0,1,c) and Duel.IsExistingMatchingCard(c90957527.spfilter2,tp,LOCATION_MZONE,0,1,c)
end end
function c90957527.spfilter2(c) function c90957527.spfilter2(c)
......
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