Commit 4d7ef30b authored by mercury233's avatar mercury233 Committed by GitHub

update Accel Synchro Stardust Dragon (#3130)

parent 8050051e
...@@ -55,15 +55,19 @@ end ...@@ -55,15 +55,19 @@ end
function c30983281.excostfilter(c,tp) function c30983281.excostfilter(c,tp)
return c:IsAbleToRemoveAsCost() and c:IsHasEffect(84012625,tp) return c:IsAbleToRemoveAsCost() and c:IsHasEffect(84012625,tp)
end end
function c30983281.synfilter(c,tp,g) function c30983281.syncheck(g,tp,syncard)
return c:IsSynchroSummonable(nil,g,#g-1,#g-1) and aux.SynMixHandCheck(g,tp,c) return aux.SynMixHandCheck(g,tp,syncard) and syncard:IsSynchroSummonable(nil,g,#g-1,#g-1)
end end
function c30983281.syncheck(g,tp,exc) function c30983281.synfilter(c,tp,mg)
return Duel.IsExistingMatchingCard(c30983281.synfilter,tp,LOCATION_EXTRA,0,1,exc,tp,g) if not c:IsType(TYPE_SYNCHRO) then return false end
aux.GCheckAdditional=aux.SynGroupCheckLevelAddition(c)
local res=mg:CheckSubGroup(c30983281.syncheck,2,#mg,tp,c)
aux.GCheckAdditional=nil
return res
end end
function c30983281.spcheck(c,tp,rc,mg,opchk) function c30983281.spcheck(c,tp,rc,mg,opchk)
return Duel.GetLocationCountFromEx(tp,tp,rc,c)>0 return Duel.GetLocationCountFromEx(tp,tp,rc,c)>0
and (opchk or mg:CheckSubGroup(c30983281.syncheck,2,#mg,tp,c)) and (opchk or Duel.IsExistingMatchingCard(c30983281.synfilter,tp,LOCATION_EXTRA,0,1,c,tp,mg))
end end
function c30983281.scfilter(c,e,tp,rc,chkrel,chknotrel,tgchk,opchk) function c30983281.scfilter(c,e,tp,rc,chkrel,chknotrel,tgchk,opchk)
if not (c:IsCode(44508094) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_SYNCHRO,tp,false,false)) then return false end if not (c:IsCode(44508094) and c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_SYNCHRO,tp,false,false)) then return false end
......
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