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

replace Auxiliary to aux (#1605)

parent 2073f484
...@@ -29,7 +29,7 @@ function c15717011.mfilter(c,tp) ...@@ -29,7 +29,7 @@ function c15717011.mfilter(c,tp)
return c:IsLocation(LOCATION_MZONE) and c:IsCanBeFusionMaterial() and (c:IsControler(tp) or c:IsFaceup()) return c:IsLocation(LOCATION_MZONE) and c:IsCanBeFusionMaterial() and (c:IsControler(tp) or c:IsFaceup())
end end
function c15717011.fcheck(tp,sg,fc) function c15717011.fcheck(tp,sg,fc)
return Duel.CheckReleaseGroup(tp,Auxiliary.IsInGroup,#sg,nil,sg) return Duel.CheckReleaseGroup(tp,aux.IsInGroup,#sg,nil,sg)
end end
function c15717011.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c15717011.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(1) e:SetLabel(1)
...@@ -42,20 +42,20 @@ function c15717011.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -42,20 +42,20 @@ function c15717011.target(e,tp,eg,ep,ev,re,r,rp,chk)
if e:GetLabel()~=1 then return false end if e:GetLabel()~=1 then return false end
e:SetLabel(0) e:SetLabel(0)
local mg=Duel.GetReleaseGroup(tp):Filter(c15717011.mfilter,nil,tp) local mg=Duel.GetReleaseGroup(tp):Filter(c15717011.mfilter,nil,tp)
Auxiliary.FCheckAdditional=c15717011.fcheck aux.FCheckAdditional=c15717011.fcheck
if c59160188 then c59160188.re_activated=true end if c59160188 then c59160188.re_activated=true end
local res=Duel.IsExistingMatchingCard(c15717011.filter,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg,c,chkf) local res=Duel.IsExistingMatchingCard(c15717011.filter,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg,c,chkf)
Auxiliary.FCheckAdditional=nil aux.FCheckAdditional=nil
if c59160188 then c59160188.re_activated=false end if c59160188 then c59160188.re_activated=false end
return res return res
end end
local mg=Duel.GetReleaseGroup(tp):Filter(c15717011.mfilter,nil,tp) local mg=Duel.GetReleaseGroup(tp):Filter(c15717011.mfilter,nil,tp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
Auxiliary.FCheckAdditional=c15717011.fcheck aux.FCheckAdditional=c15717011.fcheck
if c59160188 then c59160188.re_activated=true end if c59160188 then c59160188.re_activated=true end
local g=Duel.SelectMatchingCard(tp,c15717011.filter,tp,LOCATION_EXTRA,0,1,1,nil,e,tp,mg,c,chkf) local g=Duel.SelectMatchingCard(tp,c15717011.filter,tp,LOCATION_EXTRA,0,1,1,nil,e,tp,mg,c,chkf)
local mat=Duel.SelectFusionMaterial(tp,g:GetFirst(),mg,c,chkf) local mat=Duel.SelectFusionMaterial(tp,g:GetFirst(),mg,c,chkf)
Auxiliary.FCheckAdditional=nil aux.FCheckAdditional=nil
if c59160188 then c59160188.re_activated=false end if c59160188 then c59160188.re_activated=false end
aux.UseExtraReleaseCount(mat,tp) aux.UseExtraReleaseCount(mat,tp)
Duel.Release(mat,REASON_COST) Duel.Release(mat,REASON_COST)
......
...@@ -92,20 +92,20 @@ function c22398665.RitualCheckEqual(g,c,atk) ...@@ -92,20 +92,20 @@ function c22398665.RitualCheckEqual(g,c,atk)
end end
function c22398665.RitualCheck(g,tp,c,atk,greater_or_equal) function c22398665.RitualCheck(g,tp,c,atk,greater_or_equal)
return c22398665["RitualCheck"..greater_or_equal](g,c,atk) and Duel.GetMZoneCount(tp,g,tp)>0 and (not c.mat_group_check or c.mat_group_check(g,tp)) return c22398665["RitualCheck"..greater_or_equal](g,c,atk) and Duel.GetMZoneCount(tp,g,tp)>0 and (not c.mat_group_check or c.mat_group_check(g,tp))
and (not Auxiliary.RCheckAdditional or Auxiliary.RCheckAdditional(tp,g,c)) and (not aux.RCheckAdditional or aux.RCheckAdditional(tp,g,c))
end end
function c22398665.RitualCheckAdditional(c,atk,greater_or_equal) function c22398665.RitualCheckAdditional(c,atk,greater_or_equal)
if greater_or_equal=="Equal" then if greater_or_equal=="Equal" then
return function(g) return function(g)
return (not Auxiliary.RGCheckAdditional or Auxiliary.RGCheckAdditional(g)) and g:GetSum(Card.GetAttack)<=atk return (not aux.RGCheckAdditional or aux.RGCheckAdditional(g)) and g:GetSum(Card.GetAttack)<=atk
end end
else else
return function(g,ec) return function(g,ec)
if atk==0 then return #g<=1 end if atk==0 then return #g<=1 end
if ec then if ec then
return (not Auxiliary.RGCheckAdditional or Auxiliary.RGCheckAdditional(g,ec)) and g:GetSum(Card.GetAttack)-Card.GetAttack(ec)<=atk return (not aux.RGCheckAdditional or aux.RGCheckAdditional(g,ec)) and g:GetSum(Card.GetAttack)-Card.GetAttack(ec)<=atk
else else
return not Auxiliary.RGCheckAdditional or Auxiliary.RGCheckAdditional(g) return not aux.RGCheckAdditional or aux.RGCheckAdditional(g)
end end
end end
end end
...@@ -122,8 +122,8 @@ function c22398665.RitualUltimateFilter(c,filter,e,tp,m1,m2,attack_function,grea ...@@ -122,8 +122,8 @@ function c22398665.RitualUltimateFilter(c,filter,e,tp,m1,m2,attack_function,grea
mg:RemoveCard(c) mg:RemoveCard(c)
end end
local atk=attack_function(c) local atk=attack_function(c)
Auxiliary.GCheckAdditional=c22398665.RitualCheckAdditional(c,atk,greater_or_equal) aux.GCheckAdditional=c22398665.RitualCheckAdditional(c,atk,greater_or_equal)
local res=mg:CheckSubGroup(c22398665.RitualCheck,1,#mg,tp,c,atk,greater_or_equal) local res=mg:CheckSubGroup(c22398665.RitualCheck,1,#mg,tp,c,atk,greater_or_equal)
Auxiliary.GCheckAdditional=nil aux.GCheckAdditional=nil
return res return res
end end
...@@ -38,7 +38,7 @@ end ...@@ -38,7 +38,7 @@ end
function c28711704.fselect(g,tp) function c28711704.fselect(g,tp)
Duel.SetSelectedCard(g) Duel.SetSelectedCard(g)
return g:CheckWithSumGreater(Card.GetLevel,8) return g:CheckWithSumGreater(Card.GetLevel,8)
and Duel.GetMZoneCount(tp,g)>0 and Duel.CheckReleaseGroupEx(tp,Auxiliary.IsInGroup,#g,nil,g) and Duel.GetMZoneCount(tp,g)>0 and Duel.CheckReleaseGroupEx(tp,aux.IsInGroup,#g,nil,g)
end end
function c28711704.hspcon(e,c) function c28711704.hspcon(e,c)
if c==nil then return true end if c==nil then return true end
......
...@@ -71,13 +71,13 @@ function c31444249.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -71,13 +71,13 @@ function c31444249.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local sg=Duel.GetMatchingGroup(c31444249.filter0,tp,LOCATION_DECK,0,nil) local sg=Duel.GetMatchingGroup(c31444249.filter0,tp,LOCATION_DECK,0,nil)
if sg:GetCount()>0 then if sg:GetCount()>0 then
mg1:Merge(sg) mg1:Merge(sg)
Auxiliary.FCheckAdditional=c31444249.fcheck aux.FCheckAdditional=c31444249.fcheck
Auxiliary.GCheckAdditional=c31444249.gcheck aux.GCheckAdditional=c31444249.gcheck
end end
end end
local res=Duel.IsExistingMatchingCard(c31444249.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg1,nil,chkf) local res=Duel.IsExistingMatchingCard(c31444249.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
...@@ -103,12 +103,12 @@ function c31444249.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -103,12 +103,12 @@ function c31444249.spop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
if exmat then if exmat then
Auxiliary.FCheckAdditional=c31444249.fcheck aux.FCheckAdditional=c31444249.fcheck
Auxiliary.GCheckAdditional=c31444249.gcheck aux.GCheckAdditional=c31444249.gcheck
end end
local sg1=Duel.GetMatchingGroup(c31444249.filter2,tp,LOCATION_EXTRA,0,nil,e,tp,mg1,nil,chkf) local sg1=Duel.GetMatchingGroup(c31444249.filter2,tp,LOCATION_EXTRA,0,nil,e,tp,mg1,nil,chkf)
Auxiliary.FCheckAdditional=nil aux.FCheckAdditional=nil
Auxiliary.GCheckAdditional=nil aux.GCheckAdditional=nil
local mg2=nil local mg2=nil
local sg2=nil local sg2=nil
local ce=Duel.GetChainMaterial(tp) local ce=Duel.GetChainMaterial(tp)
...@@ -126,12 +126,12 @@ function c31444249.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -126,12 +126,12 @@ function c31444249.spop(e,tp,eg,ep,ev,re,r,rp)
local tc=tg:GetFirst() local tc=tg:GetFirst()
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=c31444249.fcheck aux.FCheckAdditional=c31444249.fcheck
Auxiliary.GCheckAdditional=c31444249.gcheck aux.GCheckAdditional=c31444249.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)
Duel.SendtoGrave(mat1,REASON_EFFECT+REASON_MATERIAL+REASON_FUSION) Duel.SendtoGrave(mat1,REASON_EFFECT+REASON_MATERIAL+REASON_FUSION)
Duel.BreakEffect() Duel.BreakEffect()
......
...@@ -39,7 +39,7 @@ function c34933456.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -39,7 +39,7 @@ function c34933456.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.RegisterEffect(me,tp) Duel.RegisterEffect(me,tp)
local chkf=tp local chkf=tp
local mg1=Duel.GetFusionMaterial(tp) local mg1=Duel.GetFusionMaterial(tp)
Auxiliary.FCheckAdditional=c34933456.fcheck aux.FCheckAdditional=c34933456.fcheck
local res=Duel.IsExistingMatchingCard(c34933456.filter,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg1,nil,chkf) local res=Duel.IsExistingMatchingCard(c34933456.filter,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg1,nil,chkf)
if not res then if not res then
local ce=Duel.GetChainMaterial(tp) local ce=Duel.GetChainMaterial(tp)
...@@ -50,7 +50,7 @@ function c34933456.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -50,7 +50,7 @@ function c34933456.target(e,tp,eg,ep,ev,re,r,rp,chk)
res=Duel.IsExistingMatchingCard(c34933456.filter,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg3,mf,chkf) res=Duel.IsExistingMatchingCard(c34933456.filter,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg3,mf,chkf)
end end
end end
Auxiliary.FCheckAdditional=nil aux.FCheckAdditional=nil
me:Reset() me:Reset()
return res return res
end end
...@@ -66,7 +66,7 @@ function c34933456.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -66,7 +66,7 @@ function c34933456.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(me,tp) Duel.RegisterEffect(me,tp)
local chkf=tp local chkf=tp
local mg1=Duel.GetFusionMaterial(tp):Filter(c34933456.filter2,nil,e) local mg1=Duel.GetFusionMaterial(tp):Filter(c34933456.filter2,nil,e)
Auxiliary.FCheckAdditional=c34933456.fcheck aux.FCheckAdditional=c34933456.fcheck
local sg1=Duel.GetMatchingGroup(c34933456.filter,tp,LOCATION_EXTRA,0,nil,e,tp,mg1,nil,chkf) local sg1=Duel.GetMatchingGroup(c34933456.filter,tp,LOCATION_EXTRA,0,nil,e,tp,mg1,nil,chkf)
local mg3=nil local mg3=nil
local sg2=nil local sg2=nil
...@@ -96,6 +96,6 @@ function c34933456.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -96,6 +96,6 @@ function c34933456.activate(e,tp,eg,ep,ev,re,r,rp)
end end
tc:CompleteProcedure() tc:CompleteProcedure()
end end
Auxiliary.FCheckAdditional=nil aux.FCheckAdditional=nil
me:Reset() me:Reset()
end end
...@@ -35,13 +35,13 @@ function c42577802.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -35,13 +35,13 @@ function c42577802.target(e,tp,eg,ep,ev,re,r,rp,chk)
local mg2=Duel.GetMatchingGroup(c42577802.filter0,tp,LOCATION_DECK+LOCATION_GRAVE,0,nil) local mg2=Duel.GetMatchingGroup(c42577802.filter0,tp,LOCATION_DECK+LOCATION_GRAVE,0,nil)
if mg2:GetCount()>0 then if mg2:GetCount()>0 then
mg1:Merge(mg2) mg1:Merge(mg2)
Auxiliary.FCheckAdditional=c42577802.fcheck aux.FCheckAdditional=c42577802.fcheck
Auxiliary.GCheckAdditional=c42577802.gcheck aux.GCheckAdditional=c42577802.gcheck
end end
end end
local res=Duel.IsExistingMatchingCard(c42577802.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg1,nil,chkf) local res=Duel.IsExistingMatchingCard(c42577802.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
...@@ -67,12 +67,12 @@ function c42577802.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -67,12 +67,12 @@ function c42577802.activate(e,tp,eg,ep,ev,re,r,rp)
end end
end end
if exmat then if exmat then
Auxiliary.FCheckAdditional=c42577802.fcheck aux.FCheckAdditional=c42577802.fcheck
Auxiliary.GCheckAdditional=c42577802.gcheck aux.GCheckAdditional=c42577802.gcheck
end end
local sg1=Duel.GetMatchingGroup(c42577802.filter2,tp,LOCATION_EXTRA,0,nil,e,tp,mg1,nil,chkf) local sg1=Duel.GetMatchingGroup(c42577802.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)
...@@ -91,12 +91,12 @@ function c42577802.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -91,12 +91,12 @@ function c42577802.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=c42577802.fcheck aux.FCheckAdditional=c42577802.fcheck
Auxiliary.GCheckAdditional=c42577802.gcheck aux.GCheckAdditional=c42577802.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)
Duel.Remove(mat1,POS_FACEUP,REASON_EFFECT+REASON_MATERIAL+REASON_FUSION) Duel.Remove(mat1,POS_FACEUP,REASON_EFFECT+REASON_MATERIAL+REASON_FUSION)
Duel.BreakEffect() Duel.BreakEffect()
......
...@@ -37,13 +37,13 @@ function c48144509.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -37,13 +37,13 @@ function c48144509.target(e,tp,eg,ep,ev,re,r,rp,chk)
local sg=Duel.GetMatchingGroup(c48144509.exfilter0,tp,LOCATION_EXTRA,0,nil) local sg=Duel.GetMatchingGroup(c48144509.exfilter0,tp,LOCATION_EXTRA,0,nil)
if sg:GetCount()>0 then if sg:GetCount()>0 then
mg1:Merge(sg) mg1:Merge(sg)
Auxiliary.FCheckAdditional=c48144509.fcheck aux.FCheckAdditional=c48144509.fcheck
Auxiliary.GCheckAdditional=c48144509.gcheck aux.GCheckAdditional=c48144509.gcheck
end end
end end
local res=Duel.IsExistingMatchingCard(c48144509.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg1,nil,chkf) local res=Duel.IsExistingMatchingCard(c48144509.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
...@@ -69,12 +69,12 @@ function c48144509.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -69,12 +69,12 @@ function c48144509.activate(e,tp,eg,ep,ev,re,r,rp)
end end
end end
if exmat then if exmat then
Auxiliary.FCheckAdditional=c48144509.fcheck aux.FCheckAdditional=c48144509.fcheck
Auxiliary.GCheckAdditional=c48144509.gcheck aux.GCheckAdditional=c48144509.gcheck
end end
local sg1=Duel.GetMatchingGroup(c48144509.filter2,tp,LOCATION_EXTRA,0,nil,e,tp,mg1,nil,chkf) local sg1=Duel.GetMatchingGroup(c48144509.filter2,tp,LOCATION_EXTRA,0,nil,e,tp,mg1,nil,chkf)
Auxiliary.FCheckAdditional=nil aux.FCheckAdditional=nil
Auxiliary.GCheckAdditional=nil aux.GCheckAdditional=nil
local mg2=nil local mg2=nil
local sg2=nil local sg2=nil
local ce=Duel.GetChainMaterial(tp) local ce=Duel.GetChainMaterial(tp)
...@@ -93,12 +93,12 @@ function c48144509.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -93,12 +93,12 @@ function c48144509.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=c48144509.fcheck aux.FCheckAdditional=c48144509.fcheck
Auxiliary.GCheckAdditional=c48144509.gcheck aux.GCheckAdditional=c48144509.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)
Duel.SendtoGrave(mat1,REASON_EFFECT+REASON_MATERIAL+REASON_FUSION) Duel.SendtoGrave(mat1,REASON_EFFECT+REASON_MATERIAL+REASON_FUSION)
Duel.BreakEffect() Duel.BreakEffect()
......
...@@ -29,7 +29,7 @@ function c52101615.mfilter(c,tp) ...@@ -29,7 +29,7 @@ function c52101615.mfilter(c,tp)
return c:IsLocation(LOCATION_MZONE) and c:IsCanBeFusionMaterial() and (c:IsControler(tp) or c:IsFaceup()) return c:IsLocation(LOCATION_MZONE) and c:IsCanBeFusionMaterial() and (c:IsControler(tp) or c:IsFaceup())
end end
function c52101615.fcheck(tp,sg,fc) function c52101615.fcheck(tp,sg,fc)
return Duel.CheckReleaseGroup(tp,Auxiliary.IsInGroup,#sg,nil,sg) return Duel.CheckReleaseGroup(tp,aux.IsInGroup,#sg,nil,sg)
end end
function c52101615.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c52101615.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(1) e:SetLabel(1)
...@@ -42,20 +42,20 @@ function c52101615.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -42,20 +42,20 @@ function c52101615.target(e,tp,eg,ep,ev,re,r,rp,chk)
if e:GetLabel()~=1 then return false end if e:GetLabel()~=1 then return false end
e:SetLabel(0) e:SetLabel(0)
local mg=Duel.GetReleaseGroup(tp):Filter(c52101615.mfilter,nil,tp) local mg=Duel.GetReleaseGroup(tp):Filter(c52101615.mfilter,nil,tp)
Auxiliary.FCheckAdditional=c52101615.fcheck aux.FCheckAdditional=c52101615.fcheck
if c59160188 then c59160188.re_activated=true end if c59160188 then c59160188.re_activated=true end
local res=Duel.IsExistingMatchingCard(c52101615.filter,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg,c,chkf) local res=Duel.IsExistingMatchingCard(c52101615.filter,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg,c,chkf)
Auxiliary.FCheckAdditional=nil aux.FCheckAdditional=nil
if c59160188 then c59160188.re_activated=false end if c59160188 then c59160188.re_activated=false end
return res return res
end end
local mg=Duel.GetReleaseGroup(tp):Filter(c52101615.mfilter,nil,tp) local mg=Duel.GetReleaseGroup(tp):Filter(c52101615.mfilter,nil,tp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
Auxiliary.FCheckAdditional=c52101615.fcheck aux.FCheckAdditional=c52101615.fcheck
if c59160188 then c59160188.re_activated=true end if c59160188 then c59160188.re_activated=true end
local g=Duel.SelectMatchingCard(tp,c52101615.filter,tp,LOCATION_EXTRA,0,1,1,nil,e,tp,mg,c,chkf) local g=Duel.SelectMatchingCard(tp,c52101615.filter,tp,LOCATION_EXTRA,0,1,1,nil,e,tp,mg,c,chkf)
local mat=Duel.SelectFusionMaterial(tp,g:GetFirst(),mg,c,chkf) local mat=Duel.SelectFusionMaterial(tp,g:GetFirst(),mg,c,chkf)
Auxiliary.FCheckAdditional=nil aux.FCheckAdditional=nil
if c59160188 then c59160188.re_activated=false end if c59160188 then c59160188.re_activated=false end
aux.UseExtraReleaseCount(mat,tp) aux.UseExtraReleaseCount(mat,tp)
Duel.Release(mat,REASON_COST) Duel.Release(mat,REASON_COST)
......
...@@ -41,13 +41,13 @@ function c57425061.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -41,13 +41,13 @@ function c57425061.target(e,tp,eg,ep,ev,re,r,rp,chk)
local sg=Duel.GetMatchingGroup(c57425061.exfilter0,tp,LOCATION_SZONE,0,nil) local sg=Duel.GetMatchingGroup(c57425061.exfilter0,tp,LOCATION_SZONE,0,nil)
if sg:GetCount()>0 then if sg:GetCount()>0 then
mg1:Merge(sg) mg1:Merge(sg)
Auxiliary.FCheckAdditional=c57425061.fcheck aux.FCheckAdditional=c57425061.fcheck
Auxiliary.GCheckAdditional=c57425061.gcheck aux.GCheckAdditional=c57425061.gcheck
end end
end end
local res=Duel.IsExistingMatchingCard(c57425061.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg1,nil,chkf) local res=Duel.IsExistingMatchingCard(c57425061.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
...@@ -73,12 +73,12 @@ function c57425061.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -73,12 +73,12 @@ function c57425061.activate(e,tp,eg,ep,ev,re,r,rp)
end end
end end
if exmat then if exmat then
Auxiliary.FCheckAdditional=c57425061.fcheck aux.FCheckAdditional=c57425061.fcheck
Auxiliary.GCheckAdditional=c57425061.gcheck aux.GCheckAdditional=c57425061.gcheck
end end
local sg1=Duel.GetMatchingGroup(c57425061.filter2,tp,LOCATION_EXTRA,0,nil,e,tp,mg1,nil,chkf) local sg1=Duel.GetMatchingGroup(c57425061.filter2,tp,LOCATION_EXTRA,0,nil,e,tp,mg1,nil,chkf)
Auxiliary.FCheckAdditional=nil aux.FCheckAdditional=nil
Auxiliary.GCheckAdditional=nil aux.GCheckAdditional=nil
local mg2=nil local mg2=nil
local sg2=nil local sg2=nil
local ce=Duel.GetChainMaterial(tp) local ce=Duel.GetChainMaterial(tp)
...@@ -97,12 +97,12 @@ function c57425061.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -97,12 +97,12 @@ function c57425061.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=c57425061.fcheck aux.FCheckAdditional=c57425061.fcheck
Auxiliary.GCheckAdditional=c57425061.gcheck aux.GCheckAdditional=c57425061.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_SZONE) local rg=mat1:Filter(Card.IsLocation,nil,LOCATION_SZONE)
mat1:Sub(rg) mat1:Sub(rg)
......
...@@ -31,8 +31,8 @@ function c58549532.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -31,8 +31,8 @@ function c58549532.target(e,tp,eg,ep,ev,re,r,rp,chk)
local chkf=tp local chkf=tp
local mg1=Duel.GetFusionMaterial(tp) local mg1=Duel.GetFusionMaterial(tp)
mg1:Merge(Duel.GetMatchingGroup(c58549532.filter0,tp,LOCATION_EXTRA,0,nil,e)) mg1:Merge(Duel.GetMatchingGroup(c58549532.filter0,tp,LOCATION_EXTRA,0,nil,e))
Auxiliary.FCheckAdditional=c58549532.fcheck aux.FCheckAdditional=c58549532.fcheck
Auxiliary.GCheckAdditional=c58549532.gcheck aux.GCheckAdditional=c58549532.gcheck
local res=Duel.IsExistingMatchingCard(c58549532.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg1,nil,chkf) local res=Duel.IsExistingMatchingCard(c58549532.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg1,nil,chkf)
if not res then if not res then
local ce=Duel.GetChainMaterial(tp) local ce=Duel.GetChainMaterial(tp)
...@@ -43,8 +43,8 @@ function c58549532.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -43,8 +43,8 @@ function c58549532.target(e,tp,eg,ep,ev,re,r,rp,chk)
res=Duel.IsExistingMatchingCard(c58549532.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg2,mf,chkf) res=Duel.IsExistingMatchingCard(c58549532.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg2,mf,chkf)
end end
end end
Auxiliary.FCheckAdditional=nil aux.FCheckAdditional=nil
Auxiliary.GCheckAdditional=nil aux.GCheckAdditional=nil
return res return res
end end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
...@@ -53,8 +53,8 @@ function c58549532.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -53,8 +53,8 @@ function c58549532.activate(e,tp,eg,ep,ev,re,r,rp)
local chkf=tp local chkf=tp
local mg1=Duel.GetFusionMaterial(tp):Filter(c58549532.filter1,nil,e) local mg1=Duel.GetFusionMaterial(tp):Filter(c58549532.filter1,nil,e)
mg1:Merge(Duel.GetMatchingGroup(c58549532.filter0,tp,LOCATION_EXTRA,0,nil,e)) mg1:Merge(Duel.GetMatchingGroup(c58549532.filter0,tp,LOCATION_EXTRA,0,nil,e))
Auxiliary.FCheckAdditional=c58549532.fcheck aux.FCheckAdditional=c58549532.fcheck
Auxiliary.GCheckAdditional=c58549532.gcheck aux.GCheckAdditional=c58549532.gcheck
local sg1=Duel.GetMatchingGroup(c58549532.filter2,tp,LOCATION_EXTRA,0,nil,e,tp,mg1,nil,chkf) local sg1=Duel.GetMatchingGroup(c58549532.filter2,tp,LOCATION_EXTRA,0,nil,e,tp,mg1,nil,chkf)
local mg2=nil local mg2=nil
local sg2=nil local sg2=nil
...@@ -84,6 +84,6 @@ function c58549532.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -84,6 +84,6 @@ function c58549532.activate(e,tp,eg,ep,ev,re,r,rp)
end end
tc:CompleteProcedure() tc:CompleteProcedure()
end end
Auxiliary.FCheckAdditional=nil aux.FCheckAdditional=nil
Auxiliary.GCheckAdditional=nil aux.GCheckAdditional=nil
end end
...@@ -39,13 +39,13 @@ function c65801012.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -39,13 +39,13 @@ function c65801012.target(e,tp,eg,ep,ev,re,r,rp,chk)
local sg=Duel.GetMatchingGroup(c65801012.exfilter0,tp,LOCATION_GRAVE,0,nil) local sg=Duel.GetMatchingGroup(c65801012.exfilter0,tp,LOCATION_GRAVE,0,nil)
if sg:GetCount()>0 then if sg:GetCount()>0 then
mg1:Merge(sg) mg1:Merge(sg)
Auxiliary.FCheckAdditional=c65801012.fcheck aux.FCheckAdditional=c65801012.fcheck
Auxiliary.GCheckAdditional=c65801012.gcheck aux.GCheckAdditional=c65801012.gcheck
end end
end end
local res=Duel.IsExistingMatchingCard(c65801012.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg1,nil,chkf) local res=Duel.IsExistingMatchingCard(c65801012.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 c65801012.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -71,12 +71,12 @@ function c65801012.activate(e,tp,eg,ep,ev,re,r,rp)
end end
end end
if exmat then if exmat then
Auxiliary.FCheckAdditional=c65801012.fcheck aux.FCheckAdditional=c65801012.fcheck
Auxiliary.GCheckAdditional=c65801012.gcheck aux.GCheckAdditional=c65801012.gcheck
end end
local sg1=Duel.GetMatchingGroup(c65801012.filter2,tp,LOCATION_EXTRA,0,nil,e,tp,mg1,nil,chkf) local sg1=Duel.GetMatchingGroup(c65801012.filter2,tp,LOCATION_EXTRA,0,nil,e,tp,mg1,nil,chkf)
Auxiliary.FCheckAdditional=nil aux.FCheckAdditional=nil
Auxiliary.GCheckAdditional=nil aux.GCheckAdditional=nil
local mg2=nil local mg2=nil
local sg2=nil local sg2=nil
local ce=Duel.GetChainMaterial(tp) local ce=Duel.GetChainMaterial(tp)
...@@ -95,12 +95,12 @@ function c65801012.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -95,12 +95,12 @@ function c65801012.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=c65801012.fcheck aux.FCheckAdditional=c65801012.fcheck
Auxiliary.GCheckAdditional=c65801012.gcheck aux.GCheckAdditional=c65801012.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_GRAVE) local rg=mat1:Filter(Card.IsLocation,nil,LOCATION_GRAVE)
mat1:Sub(rg) mat1:Sub(rg)
......
...@@ -44,8 +44,8 @@ function c76647978.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -44,8 +44,8 @@ function c76647978.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then if chk==0 then
local chkf=tp local chkf=tp
local mg1=Duel.GetFusionMaterial(tp):Filter(Card.IsOnField,nil) local mg1=Duel.GetFusionMaterial(tp):Filter(Card.IsOnField,nil)
Auxiliary.FCheckAdditional=c76647978.fcheck aux.FCheckAdditional=c76647978.fcheck
Auxiliary.GCheckAdditional=c76647978.gcheck aux.GCheckAdditional=c76647978.gcheck
local res=Duel.IsExistingMatchingCard(c76647978.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg1,nil,chkf) local res=Duel.IsExistingMatchingCard(c76647978.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg1,nil,chkf)
if not res then if not res then
local ce=Duel.GetChainMaterial(tp) local ce=Duel.GetChainMaterial(tp)
...@@ -56,8 +56,8 @@ function c76647978.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -56,8 +56,8 @@ function c76647978.target(e,tp,eg,ep,ev,re,r,rp,chk)
res=Duel.IsExistingMatchingCard(c76647978.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg2,mf,chkf) res=Duel.IsExistingMatchingCard(c76647978.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg2,mf,chkf)
end end
end end
Auxiliary.FCheckAdditional=nil aux.FCheckAdditional=nil
Auxiliary.GCheckAdditional=nil aux.GCheckAdditional=nil
return res return res
end end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
...@@ -68,8 +68,8 @@ end ...@@ -68,8 +68,8 @@ end
function c76647978.activate(e,tp,eg,ep,ev,re,r,rp) function c76647978.activate(e,tp,eg,ep,ev,re,r,rp)
local chkf=tp local chkf=tp
local mg1=Duel.GetFusionMaterial(tp):Filter(c76647978.filter1,nil,e) local mg1=Duel.GetFusionMaterial(tp):Filter(c76647978.filter1,nil,e)
Auxiliary.FCheckAdditional=c76647978.fcheck aux.FCheckAdditional=c76647978.fcheck
Auxiliary.GCheckAdditional=c76647978.gcheck aux.GCheckAdditional=c76647978.gcheck
local sg1=Duel.GetMatchingGroup(c76647978.filter2,tp,LOCATION_EXTRA,0,nil,e,tp,mg1,nil,chkf) local sg1=Duel.GetMatchingGroup(c76647978.filter2,tp,LOCATION_EXTRA,0,nil,e,tp,mg1,nil,chkf)
local mg2=nil local mg2=nil
local sg2=nil local sg2=nil
...@@ -102,8 +102,8 @@ function c76647978.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -102,8 +102,8 @@ function c76647978.activate(e,tp,eg,ep,ev,re,r,rp)
local e1=e:GetLabelObject() local e1=e:GetLabelObject()
if e1 then e1:SetLabelObject(tc) end if e1 then e1:SetLabelObject(tc) end
end end
Auxiliary.FCheckAdditional=nil aux.FCheckAdditional=nil
Auxiliary.GCheckAdditional=nil aux.GCheckAdditional=nil
end end
function c76647978.mgfilter(c,e,tp,fusc,mg) function c76647978.mgfilter(c,e,tp,fusc,mg)
return c:IsControler(tp) and c:IsLocation(LOCATION_GRAVE) return c:IsControler(tp) and c:IsLocation(LOCATION_GRAVE)
......
...@@ -43,9 +43,9 @@ function c8148322.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -43,9 +43,9 @@ function c8148322.target(e,tp,eg,ep,ev,re,r,rp,chk)
local mg1=Duel.GetFusionMaterial(tp):Filter(Card.IsOnField,nil) local mg1=Duel.GetFusionMaterial(tp):Filter(Card.IsOnField,nil)
local mg2=Duel.GetMatchingGroup(c8148322.filter0,tp,0,LOCATION_MZONE,nil) local mg2=Duel.GetMatchingGroup(c8148322.filter0,tp,0,LOCATION_MZONE,nil)
mg1:Merge(mg2) mg1:Merge(mg2)
Auxiliary.FCheckAdditional=c8148322.fcheck aux.FCheckAdditional=c8148322.fcheck
local res=Duel.IsExistingMatchingCard(c8148322.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg1,nil,chkf) local res=Duel.IsExistingMatchingCard(c8148322.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg1,nil,chkf)
Auxiliary.FCheckAdditional=nil aux.FCheckAdditional=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
...@@ -64,9 +64,9 @@ function c8148322.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -64,9 +64,9 @@ function c8148322.activate(e,tp,eg,ep,ev,re,r,rp)
local mg1=Duel.GetFusionMaterial(tp):Filter(c8148322.filter3,nil,e) local mg1=Duel.GetFusionMaterial(tp):Filter(c8148322.filter3,nil,e)
local mg2=Duel.GetMatchingGroup(c8148322.filter1,tp,0,LOCATION_MZONE,nil,e) local mg2=Duel.GetMatchingGroup(c8148322.filter1,tp,0,LOCATION_MZONE,nil,e)
mg1:Merge(mg2) mg1:Merge(mg2)
Auxiliary.FCheckAdditional=c8148322.fcheck aux.FCheckAdditional=c8148322.fcheck
local sg1=Duel.GetMatchingGroup(c8148322.filter2,tp,LOCATION_EXTRA,0,nil,e,tp,mg1,nil,chkf) local sg1=Duel.GetMatchingGroup(c8148322.filter2,tp,LOCATION_EXTRA,0,nil,e,tp,mg1,nil,chkf)
Auxiliary.FCheckAdditional=nil aux.FCheckAdditional=nil
local mg3=nil local mg3=nil
local sg2=nil local sg2=nil
local ce=Duel.GetChainMaterial(tp) local ce=Duel.GetChainMaterial(tp)
...@@ -83,9 +83,9 @@ function c8148322.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -83,9 +83,9 @@ function c8148322.activate(e,tp,eg,ep,ev,re,r,rp)
local tg=sg:Select(tp,1,1,nil) local tg=sg:Select(tp,1,1,nil)
local tc=tg:GetFirst() local tc=tg:GetFirst()
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
Auxiliary.FCheckAdditional=c8148322.fcheck aux.FCheckAdditional=c8148322.fcheck
local mat1=Duel.SelectFusionMaterial(tp,tc,mg1,nil,chkf) local mat1=Duel.SelectFusionMaterial(tp,tc,mg1,nil,chkf)
Auxiliary.FCheckAdditional=nil aux.FCheckAdditional=nil
tc:SetMaterial(mat1) tc:SetMaterial(mat1)
Duel.SendtoGrave(mat1,REASON_EFFECT+REASON_MATERIAL+REASON_FUSION) Duel.SendtoGrave(mat1,REASON_EFFECT+REASON_MATERIAL+REASON_FUSION)
Duel.BreakEffect() Duel.BreakEffect()
......
...@@ -52,15 +52,15 @@ function c84425220.gcheck(g) ...@@ -52,15 +52,15 @@ function c84425220.gcheck(g)
end end
function c84425220.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c84425220.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(c84425220.rfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,nil) local g=Duel.GetMatchingGroup(c84425220.rfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,nil)
Auxiliary.GCheckAdditional=c84425220.gcheck aux.GCheckAdditional=c84425220.gcheck
if chk==0 then if chk==0 then
local res=g:CheckSubGroup(c84425220.fselect,1,g:GetCount(),tp) local res=g:CheckSubGroup(c84425220.fselect,1,g:GetCount(),tp)
Auxiliary.GCheckAdditional=nil aux.GCheckAdditional=nil
return res return res
end end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local rg=g:SelectSubGroup(tp,c84425220.fselect,false,1,g:GetCount(),tp) local rg=g:SelectSubGroup(tp,c84425220.fselect,false,1,g:GetCount(),tp)
Auxiliary.GCheckAdditional=nil aux.GCheckAdditional=nil
Duel.Remove(rg,POS_FACEUP,REASON_COST) Duel.Remove(rg,POS_FACEUP,REASON_COST)
end end
function c84425220.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c84425220.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -37,13 +37,13 @@ function c87931906.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -37,13 +37,13 @@ function c87931906.target(e,tp,eg,ep,ev,re,r,rp,chk)
local mg2=Duel.GetMatchingGroup(c87931906.filter0,tp,LOCATION_DECK+LOCATION_EXTRA,0,nil) local mg2=Duel.GetMatchingGroup(c87931906.filter0,tp,LOCATION_DECK+LOCATION_EXTRA,0,nil)
if mg2:GetCount()>0 then if mg2:GetCount()>0 then
mg1:Merge(mg2) mg1:Merge(mg2)
Auxiliary.FCheckAdditional=c87931906.fcheck aux.FCheckAdditional=c87931906.fcheck
Auxiliary.GCheckAdditional=c87931906.gcheck aux.GCheckAdditional=c87931906.gcheck
end end
end end
local res=Duel.IsExistingMatchingCard(c87931906.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg1,nil,chkf) local res=Duel.IsExistingMatchingCard(c87931906.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
...@@ -69,12 +69,12 @@ function c87931906.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -69,12 +69,12 @@ function c87931906.activate(e,tp,eg,ep,ev,re,r,rp)
end end
end end
if exmat then if exmat then
Auxiliary.FCheckAdditional=c87931906.fcheck aux.FCheckAdditional=c87931906.fcheck
Auxiliary.GCheckAdditional=c87931906.gcheck aux.GCheckAdditional=c87931906.gcheck
end end
local sg1=Duel.GetMatchingGroup(c87931906.filter2,tp,LOCATION_EXTRA,0,nil,e,tp,mg1,nil,chkf) local sg1=Duel.GetMatchingGroup(c87931906.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)
...@@ -93,12 +93,12 @@ function c87931906.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -93,12 +93,12 @@ function c87931906.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=c87931906.fcheck aux.FCheckAdditional=c87931906.fcheck
Auxiliary.GCheckAdditional=c87931906.gcheck aux.GCheckAdditional=c87931906.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)
Duel.SendtoGrave(mat1,REASON_EFFECT+REASON_MATERIAL+REASON_FUSION) Duel.SendtoGrave(mat1,REASON_EFFECT+REASON_MATERIAL+REASON_FUSION)
Duel.BreakEffect() Duel.BreakEffect()
......
...@@ -29,7 +29,7 @@ function c88696724.mfilter(c,tp) ...@@ -29,7 +29,7 @@ function c88696724.mfilter(c,tp)
return c:IsLocation(LOCATION_MZONE) and c:IsCanBeFusionMaterial() and (c:IsControler(tp) or c:IsFaceup()) return c:IsLocation(LOCATION_MZONE) and c:IsCanBeFusionMaterial() and (c:IsControler(tp) or c:IsFaceup())
end end
function c88696724.fcheck(tp,sg,fc) function c88696724.fcheck(tp,sg,fc)
return Duel.CheckReleaseGroup(tp,Auxiliary.IsInGroup,#sg,nil,sg) return Duel.CheckReleaseGroup(tp,aux.IsInGroup,#sg,nil,sg)
end end
function c88696724.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c88696724.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(1) e:SetLabel(1)
...@@ -42,20 +42,20 @@ function c88696724.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -42,20 +42,20 @@ function c88696724.target(e,tp,eg,ep,ev,re,r,rp,chk)
if e:GetLabel()~=1 then return false end if e:GetLabel()~=1 then return false end
e:SetLabel(0) e:SetLabel(0)
local mg=Duel.GetReleaseGroup(tp):Filter(c88696724.mfilter,nil,tp) local mg=Duel.GetReleaseGroup(tp):Filter(c88696724.mfilter,nil,tp)
Auxiliary.FCheckAdditional=c88696724.fcheck aux.FCheckAdditional=c88696724.fcheck
if c59160188 then c59160188.re_activated=true end if c59160188 then c59160188.re_activated=true end
local res=Duel.IsExistingMatchingCard(c88696724.filter,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg,c,chkf) local res=Duel.IsExistingMatchingCard(c88696724.filter,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg,c,chkf)
Auxiliary.FCheckAdditional=nil aux.FCheckAdditional=nil
if c59160188 then c59160188.re_activated=false end if c59160188 then c59160188.re_activated=false end
return res return res
end end
local mg=Duel.GetReleaseGroup(tp):Filter(c88696724.mfilter,nil,tp) local mg=Duel.GetReleaseGroup(tp):Filter(c88696724.mfilter,nil,tp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
Auxiliary.FCheckAdditional=c88696724.fcheck aux.FCheckAdditional=c88696724.fcheck
if c59160188 then c59160188.re_activated=true end if c59160188 then c59160188.re_activated=true end
local g=Duel.SelectMatchingCard(tp,c88696724.filter,tp,LOCATION_EXTRA,0,1,1,nil,e,tp,mg,c,chkf) local g=Duel.SelectMatchingCard(tp,c88696724.filter,tp,LOCATION_EXTRA,0,1,1,nil,e,tp,mg,c,chkf)
local mat=Duel.SelectFusionMaterial(tp,g:GetFirst(),mg,c,chkf) local mat=Duel.SelectFusionMaterial(tp,g:GetFirst(),mg,c,chkf)
Auxiliary.FCheckAdditional=nil aux.FCheckAdditional=nil
if c59160188 then c59160188.re_activated=false end if c59160188 then c59160188.re_activated=false end
aux.UseExtraReleaseCount(mat,tp) aux.UseExtraReleaseCount(mat,tp)
Duel.Release(mat,REASON_COST) Duel.Release(mat,REASON_COST)
......
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