Commit aaa5251c authored by Chrono-Genex's avatar Chrono-Genex Committed by GitHub

replace Auxiliary to aux (#1876)

parent eb883f32
...@@ -26,13 +26,13 @@ function c13386407.RitualUltimateFilter(c,filter,e,tp,m1,m2,level_function,great ...@@ -26,13 +26,13 @@ function c13386407.RitualUltimateFilter(c,filter,e,tp,m1,m2,level_function,great
mg:RemoveCard(c) mg:RemoveCard(c)
end end
local lv=level_function(c) local lv=level_function(c)
Auxiliary.GCheckAdditional=Auxiliary.RitualCheckAdditional(c,lv,greater_or_equal) aux.GCheckAdditional=aux.RitualCheckAdditional(c,lv,greater_or_equal)
local res=mg:CheckSubGroup(c13386407.rcheck,1,lv,tp,c,lv,greater_or_equal,mc) local res=mg:CheckSubGroup(c13386407.rcheck,1,lv,tp,c,lv,greater_or_equal,mc)
Auxiliary.GCheckAdditional=nil aux.GCheckAdditional=nil
return res return res
end end
function c13386407.rcheck(g,tp,c,lv,greater_or_equal,mc) function c13386407.rcheck(g,tp,c,lv,greater_or_equal,mc)
return Auxiliary.RitualCheck(g,tp,c,lv,greater_or_equal) and g:IsContains(mc) return aux.RitualCheck(g,tp,c,lv,greater_or_equal) and g:IsContains(mc)
end end
function c13386407.spfilter(c,e,tp) function c13386407.spfilter(c,e,tp)
if not (c:IsSetCard(0x106) and not c:IsCode(29348048) if not (c:IsSetCard(0x106) and not c:IsCode(29348048)
...@@ -79,9 +79,9 @@ function c13386407.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -79,9 +79,9 @@ function c13386407.activate(e,tp,eg,ep,ev,re,r,rp)
end end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local lv=Card.GetLevel(tc) local lv=Card.GetLevel(tc)
Auxiliary.GCheckAdditional=Auxiliary.RitualCheckAdditional(tc,lv,"Greater") aux.GCheckAdditional=aux.RitualCheckAdditional(tc,lv,"Greater")
mat=mg:SelectSubGroup(tp,c13386407.rcheck,false,1,lv,tp,tc,lv,"Greater",sc) mat=mg:SelectSubGroup(tp,c13386407.rcheck,false,1,lv,tp,tc,lv,"Greater",sc)
Auxiliary.GCheckAdditional=nil aux.GCheckAdditional=nil
tc:SetMaterial(mat) tc:SetMaterial(mat)
Duel.ReleaseRitualMaterial(mat) Duel.ReleaseRitualMaterial(mat)
Duel.BreakEffect() Duel.BreakEffect()
......
...@@ -10,7 +10,7 @@ function s.initial_effect(c) ...@@ -10,7 +10,7 @@ function s.initial_effect(c)
e1:SetOperation(s.op) e1:SetOperation(s.op)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--Ritual sum --Ritual sum
local e2=Auxiliary.AddRitualProcGreater2(c,s.ritfilter,LOCATION_HAND) local e2=aux.AddRitualProcGreater2(c,s.ritfilter,LOCATION_HAND)
e2:SetType(EFFECT_TYPE_IGNITION) e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_FZONE) e2:SetRange(LOCATION_FZONE)
c:RegisterEffect(e2) c:RegisterEffect(e2)
......
...@@ -11,7 +11,7 @@ function c32785578.initial_effect(c) ...@@ -11,7 +11,7 @@ function c32785578.initial_effect(c)
e1:SetOperation(c32785578.activate) e1:SetOperation(c32785578.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function Auxiliary.LabrynthDestroyOp(e,tp,res) function aux.LabrynthDestroyOp(e,tp,res)
local c=e:GetHandler() local c=e:GetHandler()
local chk=not c:IsStatus(STATUS_ACT_FROM_HAND) and c:IsSetCard(0x117e) and c:GetType()==TYPE_TRAP and e:IsHasType(EFFECT_TYPE_ACTIVATE) local chk=not c:IsStatus(STATUS_ACT_FROM_HAND) and c:IsSetCard(0x117e) and c:GetType()==TYPE_TRAP and e:IsHasType(EFFECT_TYPE_ACTIVATE)
local exc=nil local exc=nil
......
...@@ -39,12 +39,12 @@ function c35705817.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -39,12 +39,12 @@ function c35705817.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
if mg2:GetCount()>0 then if mg2:GetCount()>0 then
mg1:Merge(mg2) mg1:Merge(mg2)
Auxiliary.FCheckAdditional=c35705817.fcheck aux.FCheckAdditional=c35705817.fcheck
Auxiliary.GCheckAdditional=c35705817.gcheck aux.GCheckAdditional=c35705817.gcheck
end end
local res=Duel.IsExistingMatchingCard(c35705817.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg1,nil,chkf) local res=Duel.IsExistingMatchingCard(c35705817.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg1,nil,chkf)
Auxiliary.FCheckAdditional=nil aux.FCheckAdditional=nil
Auxiliary.GCheckAdditional=nil aux.GCheckAdditional=nil
if not res then if not res then
local ce=Duel.GetChainMaterial(tp) local ce=Duel.GetChainMaterial(tp)
if ce~=nil then if ce~=nil then
...@@ -71,12 +71,12 @@ function c35705817.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -71,12 +71,12 @@ function c35705817.activate(e,tp,eg,ep,ev,re,r,rp)
exmat=true exmat=true
end end
if exmat then if exmat then
Auxiliary.FCheckAdditional=c35705817.fcheck aux.FCheckAdditional=c35705817.fcheck
Auxiliary.GCheckAdditional=c35705817.gcheck aux.GCheckAdditional=c35705817.gcheck
end end
local sg1=Duel.GetMatchingGroup(c35705817.filter2,tp,LOCATION_EXTRA,0,nil,e,tp,mg1,nil,chkf) local sg1=Duel.GetMatchingGroup(c35705817.filter2,tp,LOCATION_EXTRA,0,nil,e,tp,mg1,nil,chkf)
Auxiliary.FCheckAdditional=nil aux.FCheckAdditional=nil
Auxiliary.GCheckAdditional=nil aux.GCheckAdditional=nil
local mg3=nil local mg3=nil
local sg2=nil local sg2=nil
local ce=Duel.GetChainMaterial(tp) local ce=Duel.GetChainMaterial(tp)
...@@ -95,12 +95,12 @@ function c35705817.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -95,12 +95,12 @@ function c35705817.activate(e,tp,eg,ep,ev,re,r,rp)
mg1:RemoveCard(tc) mg1:RemoveCard(tc)
if sg1:IsContains(tc) and (sg2==nil or not sg2:IsContains(tc) or not Duel.SelectYesNo(tp,ce:GetDescription())) then if sg1:IsContains(tc) and (sg2==nil or not sg2:IsContains(tc) or not Duel.SelectYesNo(tp,ce:GetDescription())) then
if exmat then if exmat then
Auxiliary.FCheckAdditional=c35705817.fcheck aux.FCheckAdditional=c35705817.fcheck
Auxiliary.GCheckAdditional=c35705817.gcheck aux.GCheckAdditional=c35705817.gcheck
end end
local mat1=Duel.SelectFusionMaterial(tp,tc,mg1,nil,chkf) local mat1=Duel.SelectFusionMaterial(tp,tc,mg1,nil,chkf)
Auxiliary.FCheckAdditional=nil aux.FCheckAdditional=nil
Auxiliary.GCheckAdditional=nil aux.GCheckAdditional=nil
tc:SetMaterial(mat1) tc:SetMaterial(mat1)
local rg=mat1:Filter(Card.IsLocation,nil,LOCATION_ONFIELD) local rg=mat1:Filter(Card.IsLocation,nil,LOCATION_ONFIELD)
mat1:Sub(rg) mat1:Sub(rg)
......
...@@ -24,7 +24,7 @@ function c5380979.initial_effect(c) ...@@ -24,7 +24,7 @@ function c5380979.initial_effect(c)
e2:SetOperation(c5380979.setop) e2:SetOperation(c5380979.setop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function Auxiliary.LabrynthDestroyOp(e,tp,res) function aux.LabrynthDestroyOp(e,tp,res)
local c=e:GetHandler() local c=e:GetHandler()
local chk=not c:IsStatus(STATUS_ACT_FROM_HAND) and c:IsSetCard(0x117e) and c:GetType()==TYPE_TRAP and e:IsHasType(EFFECT_TYPE_ACTIVATE) local chk=not c:IsStatus(STATUS_ACT_FROM_HAND) and c:IsSetCard(0x117e) and c:GetType()==TYPE_TRAP and e:IsHasType(EFFECT_TYPE_ACTIVATE)
local exc=nil local exc=nil
......
...@@ -13,7 +13,7 @@ function s.initial_effect(c) ...@@ -13,7 +13,7 @@ function s.initial_effect(c)
e1:SetOperation(s.spop) e1:SetOperation(s.spop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--Ritual sum --Ritual sum
local e2=Auxiliary.AddRitualProcGreater2(c,s.ritfilter,LOCATION_HAND) local e2=aux.AddRitualProcGreater2(c,s.ritfilter,LOCATION_HAND)
e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE) e2:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
......
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