Commit 51b90cb7 authored by CubeRuler's avatar CubeRuler

fix

parent bd41c6f6
...@@ -11,15 +11,15 @@ function c16105110.initial_effect(c) ...@@ -11,15 +11,15 @@ function c16105110.initial_effect(c)
end end
function c16105110.filter(c,e,tp,m) function c16105110.filter(c,e,tp,m)
local b=0 local b=0
if not c:IsSetCard(0xcc3) then return end
if c:IsType(TYPE_SYNCHRO) then b=SUMMON_TYPE_SYNCHRO if c:IsType(TYPE_SYNCHRO) then b=SUMMON_TYPE_SYNCHRO
elseif c:IsType(TYPE_FUSION) then b=SUMMON_TYPE_FUSION elseif c:IsType(TYPE_FUSION) then b=SUMMON_TYPE_FUSION
elseif c:IsType(TYPE_XYZ) then b=SUMMON_TYPE_XYZ elseif c:IsType(TYPE_XYZ) then b=SUMMON_TYPE_XYZ
elseif c:IsType(TYPE_RITUAL) then b=TYPE_RITUAL elseif c:IsType(TYPE_RITUAL) then b=TYPE_RITUAL
else b=0 end else b=0 end
if not c:IsSetCard(0xcc3)
or not c:IsCanBeSpecialSummoned(e,b,tp,true,true) or not (c:IsLevelAbove(1) or c:IsRankAbove(1)) then return false end
m=m:Filter(c16105110.matfilter,nil,c) m=m:Filter(c16105110.matfilter,nil,c)
return m:CheckWithSumEqual(c16105110.sumfun,c:GetLevel(),1,99,c) local num=c:GetLevel()+c:GetRank()
return c:IsCanBeSpecialSummoned(e,b,tp,true,true) and (c:IsLevelAbove(1) or c:IsRankAbove(1)) and m:CheckWithSumEqual(c16105110.sumfun,num,1,99)
end end
function c16105110.sumfun(c) function c16105110.sumfun(c)
return c:GetLevel()+c:GetRank()+c:GetLink() return c:GetLevel()+c:GetRank()+c:GetLink()
...@@ -46,9 +46,10 @@ function c16105110.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -46,9 +46,10 @@ function c16105110.activate(e,tp,eg,ep,ev,re,r,rp)
local tg=Duel.SelectMatchingCard(tp,c16105110.filter,tp,LOCATION_EXTRA,0,1,1,nil,e,tp,mg) local tg=Duel.SelectMatchingCard(tp,c16105110.filter,tp,LOCATION_EXTRA,0,1,1,nil,e,tp,mg)
if tg:GetCount()>0 then if tg:GetCount()>0 then
local tc=tg:GetFirst() local tc=tg:GetFirst()
local num=tc:GetLevel()+tc:GetRank()
mg=mg:Filter(c16105110.matfilter,nil,tc) mg=mg:Filter(c16105110.matfilter,nil,tc)
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(16105110,1)) Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(16105110,1))
local mat=mg:SelectWithSumEqual(tp,Card.GetLevel,tc:GetLevel(),1,99,tc) local mat=mg:SelectWithSumEqual(tp,c16105110.sumfun,num,1,99)
tc:SetMaterial(mat) tc:SetMaterial(mat)
mat1=mat:Filter(Card.IsLocation,nil,LOCATION_EXTRA) mat1=mat:Filter(Card.IsLocation,nil,LOCATION_EXTRA)
mat=mat:Filter(c16105110.tdfilter,nil) mat=mat:Filter(c16105110.tdfilter,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