Commit ba2acb88 authored by mercury233's avatar mercury233

update Auxiliary.LCheckGoal

parent c9cb15ea
...@@ -45,12 +45,6 @@ function s.initial_effect(c) ...@@ -45,12 +45,6 @@ function s.initial_effect(c)
e5:SetOperation(s.tgop) e5:SetOperation(s.tgop)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
function Auxiliary.LCheckGoal(sg,tp,lc,gf,lmat)
return sg:CheckWithSumEqual(Auxiliary.GetLinkCount,lc:GetLink(),#sg,#sg)
and Duel.GetLocationCountFromEx(tp,tp,sg,lc)>0 and (not gf or gf(sg,lc,tp))
and not sg:IsExists(Auxiliary.LUncompatibilityFilter,1,nil,sg,lc,tp)
and (not lmat or sg:IsContains(lmat))
end
function s.cfilter(c) function s.cfilter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsSetCard(0x14d) return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsSetCard(0x14d)
end end
......
...@@ -2030,7 +2030,7 @@ function Auxiliary.LUncompatibilityFilter(c,sg,lc,tp) ...@@ -2030,7 +2030,7 @@ function Auxiliary.LUncompatibilityFilter(c,sg,lc,tp)
end end
function Auxiliary.LCheckGoal(sg,tp,lc,gf,lmat) function Auxiliary.LCheckGoal(sg,tp,lc,gf,lmat)
return sg:CheckWithSumEqual(Auxiliary.GetLinkCount,lc:GetLink(),#sg,#sg) return sg:CheckWithSumEqual(Auxiliary.GetLinkCount,lc:GetLink(),#sg,#sg)
and Duel.GetLocationCountFromEx(tp,tp,sg,lc)>0 and (not gf or gf(sg)) and Duel.GetLocationCountFromEx(tp,tp,sg,lc)>0 and (not gf or gf(sg,lc,tp))
and not sg:IsExists(Auxiliary.LUncompatibilityFilter,1,nil,sg,lc,tp) and not sg:IsExists(Auxiliary.LUncompatibilityFilter,1,nil,sg,lc,tp)
and (not lmat or sg:IsContains(lmat)) and (not lmat or sg:IsContains(lmat))
end 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