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

byd

parent cc225799
...@@ -52,7 +52,8 @@ function s.checkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -52,7 +52,8 @@ function s.checkop(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst() local tc=eg:GetFirst()
while tc do while tc do
local code=tc:GetOriginalCode() local code=tc:GetOriginalCode()
local cg=Duel.GetMatchingGroup(s.ckfilter0,tp,0x70,0,nil,code) local p=tc:GetPreviousControler()
local cg=Duel.GetMatchingGroup(s.ckfilter0,p,0x70,0,nil,code)
local cc=cg:GetFirst() local cc=cg:GetFirst()
while cc do while cc do
cc:RegisterFlagEffect(id,0,0,0) cc:RegisterFlagEffect(id,0,0,0)
......
...@@ -75,7 +75,7 @@ function c21185825.gf(c,lc,sg) ...@@ -75,7 +75,7 @@ function c21185825.gf(c,lc,sg)
end end
function c21185825.LCheckGoal(sg,tp,lc,lmat) function c21185825.LCheckGoal(sg,tp,lc,lmat)
return #sg>=4 return #sg>=4
and sg:IsExists(c21185825.gf,1,nil,cl,sg) and sg:IsExists(c21185825.gf,1,nil,lc,sg)
and sg:CheckWithSumEqual(aux.GetLinkCount,5,#sg,#sg) and sg:CheckWithSumEqual(aux.GetLinkCount,5,#sg,#sg)
and Duel.GetLocationCountFromEx(tp,tp,sg,lc)>0 and Duel.GetLocationCountFromEx(tp,tp,sg,lc)>0
and not sg:IsExists(aux.LUncompatibilityFilter,1,nil,sg,lc,tp) and not sg:IsExists(aux.LUncompatibilityFilter,1,nil,sg,lc,tp)
...@@ -85,12 +85,12 @@ function c21185825.LCheckGoal2(sg,tp,lc,lmat) ...@@ -85,12 +85,12 @@ function c21185825.LCheckGoal2(sg,tp,lc,lmat)
return #sg==1 return #sg==1
and sg:IsExists(c21185825.onlycheck,1,nil,lc,sg) and sg:IsExists(c21185825.onlycheck,1,nil,lc,sg)
or #sg>=4 or #sg>=4
and sg:IsExists(c21185825.gf,1,nil,cl,sg) and sg:IsExists(c21185825.gf,1,nil,lc,sg)
and sg:CheckWithSumEqual(aux.GetLinkCount,5,#sg,#sg) and sg:CheckWithSumEqual(aux.GetLinkCount,5,#sg,#sg)
and Duel.GetLocationCountFromEx(tp,tp,sg,lc)>0 and Duel.GetLocationCountFromEx(tp,tp,sg,lc)>0
and not sg:IsExists(aux.LUncompatibilityFilter,1,nil,sg,lc,tp) and not sg:IsExists(aux.LUncompatibilityFilter,1,nil,sg,lc,tp)
and (not lmat or sg:IsContains(lmat)) and (not lmat or sg:IsContains(lmat))
and #sg==sg:Filter(Card.IsLinkType,nil) and #sg==sg:Filter(Card.IsLinkType,nil,TYPE_EFFECT):GetCount()
end end
function c21185825.linkcon() function c21185825.linkcon()
return function(e,c,og,lmat,min,max) return function(e,c,og,lmat,min,max)
......
...@@ -4,7 +4,7 @@ function c21185848.initial_effect(c) ...@@ -4,7 +4,7 @@ function c21185848.initial_effect(c)
aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsLinkType,TYPE_EFFECT),2) aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsLinkType,TYPE_EFFECT),2)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) e1:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e1:SetTargetRange(LOCATION_MZONE,0) e1:SetTargetRange(LOCATION_MZONE,0)
e1:SetTarget(c21185848.tg) e1:SetTarget(c21185848.tg)
......
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