Commit 798182ef authored by mercury233's avatar mercury233

update Etude of the Branded

parent d5d58a26
...@@ -29,10 +29,20 @@ function c45675980.initial_effect(c) ...@@ -29,10 +29,20 @@ function c45675980.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c45675980.syncheck(g,tp,syncard) function c45675980.syncheck(g,tp,syncard)
return g:IsExists(Card.IsRace,1,nil,RACE_DRAGON) and syncard:IsSynchroSummonable(nil,g,#g-1,#g-1) and aux.SynMixHandCheck(g,tp,syncard) return aux.SynMixHandCheck(g,tp,syncard) and syncard:IsSynchroSummonable(nil,g,#g-1,#g-1)
end
function c45675980.syncheckaddition(syncard)
return function(g)
if not g:IsExists(Card.IsRace,1,nil,RACE_DRAGON) then return false end
local sumlv=g:GetSum(Auxiliary.GetMinSynchroLevel,syncard)
return sumlv<=syncard:GetLevel()
end
end end
function c45675980.spfilter(c,tp,mg) function c45675980.spfilter(c,tp,mg)
return mg:CheckSubGroup(c45675980.syncheck,2,#mg,tp,c) aux.GCheckAdditional=c45675980.syncheckaddition(c)
local res=mg:CheckSubGroup(c45675980.syncheck,2,#mg,tp,c)
aux.GCheckAdditional=nil
return res
end end
function c45675980.sctg(e,tp,eg,ep,ev,re,r,rp,chk) function c45675980.sctg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then if chk==0 then
......
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