Commit f86827ff authored by 聖園ミカ's avatar 聖園ミカ 🐟

Replace c53752002.lua

parent 37c29a72
Pipeline #30688 passed with stages
in 30 minutes and 2 seconds
...@@ -280,12 +280,13 @@ function s.SynMixCondition(e,c,smat,mg1,min,max) ...@@ -280,12 +280,13 @@ function s.SynMixCondition(e,c,smat,mg1,min,max)
aux.GCheckAdditional=nil aux.GCheckAdditional=nil
SNNM.SubGroupParams={} SNNM.SubGroupParams={}
Duel.ResetFlagEffect(tp,8173184+1) Duel.ResetFlagEffect(tp,8173184+1)
return res and mg:IsExists(s.ntfilter,1,nil,c,mg) and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0 return res and mg:IsExists(s.ntfilter,1,nil,c,mg)
end end
function s.ntfilter(c,sc,mg) function s.ntfilter(c,sc,mg)
return s.TunerCheck(c,sc) and mg:IsExists(s.NotTunerCheck,1,c,sc) return s.TunerCheck(c,sc) and mg:IsExists(s.NotTunerCheck,1,c,sc)
end end
function s.syngoal(g,sc,smat,tp,mgchk) function s.syngoal(g,sc,smat,tp,mgchk)
if Duel.GetLocationCountFromEx(tp,tp,g,sc)<=0 then return false end
if not g:IsExists(s.ntfilter,1,nil,sc,g) then return false end if not g:IsExists(s.ntfilter,1,nil,sc,g) then return false end
if smat and not g:IsContains(smat) then return false end if smat and not g:IsContains(smat) then return false end
if not aux.MustMaterialCheck(g,tp,EFFECT_MUST_BE_SMATERIAL) then return false end if not aux.MustMaterialCheck(g,tp,EFFECT_MUST_BE_SMATERIAL) then return false end
...@@ -421,7 +422,7 @@ function s.initial_effect(c) ...@@ -421,7 +422,7 @@ function s.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function s.filter(c,tp) function s.filter(c,tp)
return c:IsType(TYPE_FIELD) and c:IsCode(id+1) and c:GetActivateEffect():IsActivatable(tp,true,true) return c:IsType(TYPE_FIELD) and c:IsOriginalCodeRule(22702055) and c:GetActivateEffect():IsActivatable(tp,true,true)
end end
function s.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function s.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil,tp) end if chk==0 then return Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil,tp) 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