Commit 2dc3e08f authored by 聖園ミカ's avatar 聖園ミカ 🐟

byd

parent 52d43fc8
Pipeline #30152 passed with stages
in 33 minutes and 49 seconds
...@@ -216,11 +216,11 @@ function s.lvplus(group,sc) ...@@ -216,11 +216,11 @@ function s.lvplus(group,sc)
calculateRecursive(cards, 1, 0) calculateRecursive(cards, 1, 0)
return results return results
end end
function s.IsTuner(c,sc) function s.TunerCheck(c,sc)
local p,sp=c:GetControler(),sc:GetControler() local p,sp=c:GetControler(),sc:GetControler()
return c:IsTuner(sc) and (c:IsFaceup() or p==sp or not c:IsOnField()) return c:IsTuner(sc) and (c:IsFaceup() or p==sp or not c:IsOnField())
end end
function s.IsNotTuner(c,sc) function s.NotTunerCheck(c,sc)
local p,sp=c:GetControler(),sc:GetControler() local p,sp=c:GetControler(),sc:GetControler()
return c:IsNotTuner(sc) or (c:IsFacedown() and p~=sp and c:IsOnField()) return c:IsNotTuner(sc) or (c:IsFacedown() and p~=sp and c:IsOnField())
end end
...@@ -232,12 +232,12 @@ function s.slfilter(c,tc,sc) ...@@ -232,12 +232,12 @@ function s.slfilter(c,tc,sc)
if lv1_2 and lv2_2 then res1=(((lv1_1==lv2_1) and (lv1_2==lv2_2)) or ((lv1_1==lv2_2) and (lv1_2==lv2_1))) end if lv1_2 and lv2_2 then res1=(((lv1_1==lv2_1) and (lv1_2==lv2_2)) or ((lv1_1==lv2_2) and (lv1_2==lv2_1))) end
if not res1 then return false end if not res1 then return false end
local function botht(card,syncard) local function botht(card,syncard)
return s.IsTuner(card,syncard) and s.IsNotTuner(card,syncard) return s.TunerCheck(card,syncard) and s.NotTunerCheck(card,syncard)
end end
if botht(c,sc) and botht(tc,sc) then return true if botht(c,sc) and botht(tc,sc) then return true
elseif botht(c,sc) and not botht(tc,sc) then return false elseif botht(c,sc) and not botht(tc,sc) then return false
elseif not botht(c,sc) and botht(tc,sc) then return false else elseif not botht(c,sc) and botht(tc,sc) then return false else
if (s.IsTuner(c,sc) and s.IsTuner(tc,sc)) or (s.IsNotTuner(c,sc) and s.IsNotTuner(tc,sc)) then return true end if (s.TunerCheck(c,sc) and s.TunerCheck(tc,sc)) or (s.NotTunerCheck(c,sc) and s.NotTunerCheck(tc,sc)) then return true end
end end
return false return false
end end
...@@ -283,7 +283,7 @@ function s.SynMixCondition(e,c,smat,mg1,min,max) ...@@ -283,7 +283,7 @@ function s.SynMixCondition(e,c,smat,mg1,min,max)
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) and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0
end end
function s.ntfilter(c,sc,mg) function s.ntfilter(c,sc,mg)
return s.IsTuner(c,sc) and mg:IsExists(s.IsNotTuner,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 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
...@@ -421,7 +421,7 @@ function s.initial_effect(c) ...@@ -421,7 +421,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(53752003) 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