Commit 3edb0ce3 authored by wind2009's avatar wind2009 Committed by GitHub

Add has_text_type=TYPE_UNION (#2523)

parent 30179ac6
...@@ -13,6 +13,7 @@ function c11743119.initial_effect(c) ...@@ -13,6 +13,7 @@ function c11743119.initial_effect(c)
e1:SetOperation(c11743119.eqop) e1:SetOperation(c11743119.eqop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c11743119.has_text_type=TYPE_UNION
function c11743119.eqcon(e,tp,eg,ep,ev,re,r,rp) function c11743119.eqcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local ec=e:GetLabelObject() local ec=e:GetLabelObject()
......
...@@ -11,6 +11,7 @@ function c12079734.initial_effect(c) ...@@ -11,6 +11,7 @@ function c12079734.initial_effect(c)
e1:SetOperation(c12079734.operation) e1:SetOperation(c12079734.operation)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c12079734.has_text_type=TYPE_UNION
function c12079734.filter1(c,ec) function c12079734.filter1(c,ec)
return c:IsType(TYPE_UNION) and c:CheckUnionTarget(ec) and aux.CheckUnionEquip(c,ec) return c:IsType(TYPE_UNION) and c:CheckUnionTarget(ec) and aux.CheckUnionEquip(c,ec)
end end
......
...@@ -12,6 +12,7 @@ function c12524259.initial_effect(c) ...@@ -12,6 +12,7 @@ function c12524259.initial_effect(c)
e1:SetOperation(c12524259.activate) e1:SetOperation(c12524259.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c12524259.has_text_type=TYPE_UNION
function c12524259.tgfilter(c,tp) function c12524259.tgfilter(c,tp)
return c:IsFaceup() and c:IsRace(RACE_MACHINE) return c:IsFaceup() and c:IsRace(RACE_MACHINE)
and Duel.IsExistingMatchingCard(c12524259.eqfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,c,tp) and Duel.IsExistingMatchingCard(c12524259.eqfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,c,tp)
......
...@@ -40,6 +40,7 @@ function c1561110.initial_effect(c) ...@@ -40,6 +40,7 @@ function c1561110.initial_effect(c)
e4:SetOperation(c1561110.spop2) e4:SetOperation(c1561110.spop2)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
c1561110.has_text_type=TYPE_UNION
function c1561110.splimit(e,se,sp,st) function c1561110.splimit(e,se,sp,st)
return not e:GetHandler():IsLocation(LOCATION_EXTRA) return not e:GetHandler():IsLocation(LOCATION_EXTRA)
end end
......
...@@ -19,6 +19,7 @@ function c21723081.initial_effect(c) ...@@ -19,6 +19,7 @@ function c21723081.initial_effect(c)
e2:SetOperation(c21723081.operation) e2:SetOperation(c21723081.operation)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
c21723081.has_text_type=TYPE_UNION
function c21723081.cfilter(c) function c21723081.cfilter(c)
return c:IsFaceup() and (c:IsCode(91998119) or c:IsType(TYPE_FUSION) and aux.IsMaterialListCode(c,91998119)) return c:IsFaceup() and (c:IsCode(91998119) or c:IsType(TYPE_FUSION) and aux.IsMaterialListCode(c,91998119))
end end
......
...@@ -9,6 +9,7 @@ function c26931058.initial_effect(c) ...@@ -9,6 +9,7 @@ function c26931058.initial_effect(c)
e1:SetOperation(c26931058.efop) e1:SetOperation(c26931058.efop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c26931058.has_text_type=TYPE_UNION
function c26931058.filter1(c,tp) function c26931058.filter1(c,tp)
return c:IsFaceup() and c:IsType(TYPE_UNION) return c:IsFaceup() and c:IsType(TYPE_UNION)
and Duel.IsExistingMatchingCard(c26931058.filter2,tp,LOCATION_MZONE,0,1,c,c) and Duel.IsExistingMatchingCard(c26931058.filter2,tp,LOCATION_MZONE,0,1,c,c)
......
...@@ -18,6 +18,7 @@ function c30012506.initial_effect(c) ...@@ -18,6 +18,7 @@ function c30012506.initial_effect(c)
e5:SetOperation(c30012506.thop) e5:SetOperation(c30012506.thop)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
c30012506.has_text_type=TYPE_UNION
function c30012506.filter(c) function c30012506.filter(c)
return c:IsRace(RACE_MACHINE) and c:IsAttribute(ATTRIBUTE_LIGHT) return c:IsRace(RACE_MACHINE) and c:IsAttribute(ATTRIBUTE_LIGHT)
end end
......
...@@ -18,6 +18,7 @@ function c3405259.initial_effect(c) ...@@ -18,6 +18,7 @@ function c3405259.initial_effect(c)
e5:SetOperation(c3405259.spop2) e5:SetOperation(c3405259.spop2)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
c3405259.has_text_type=TYPE_UNION
function c3405259.filter(c) function c3405259.filter(c)
return c:IsRace(RACE_MACHINE) and c:IsAttribute(ATTRIBUTE_LIGHT) return c:IsRace(RACE_MACHINE) and c:IsAttribute(ATTRIBUTE_LIGHT)
end end
......
...@@ -24,6 +24,7 @@ function c39778366.initial_effect(c) ...@@ -24,6 +24,7 @@ function c39778366.initial_effect(c)
e2:SetOperation(c39778366.thop) e2:SetOperation(c39778366.thop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
c39778366.has_text_type=TYPE_UNION
function c39778366.filter(c,e,tp) function c39778366.filter(c,e,tp)
return c:IsFaceup() and c:IsRace(RACE_MACHINE) and c:IsAttribute(ATTRIBUTE_LIGHT) return c:IsFaceup() and c:IsRace(RACE_MACHINE) and c:IsAttribute(ATTRIBUTE_LIGHT)
and c:IsType(TYPE_NORMAL+TYPE_UNION) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsType(TYPE_NORMAL+TYPE_UNION) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -19,6 +19,7 @@ function c39890958.initial_effect(c) ...@@ -19,6 +19,7 @@ function c39890958.initial_effect(c)
e5:SetOperation(c39890958.sumop) e5:SetOperation(c39890958.sumop)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
c39890958.has_text_type=TYPE_UNION
function c39890958.filter(c) function c39890958.filter(c)
return c:IsRace(RACE_MACHINE) return c:IsRace(RACE_MACHINE)
end end
......
...@@ -16,6 +16,7 @@ function c46181000.initial_effect(c) ...@@ -16,6 +16,7 @@ function c46181000.initial_effect(c)
e1:SetOperation(c46181000.operation) e1:SetOperation(c46181000.operation)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c46181000.has_text_type=TYPE_UNION
function c46181000.filter(c,e,sp) function c46181000.filter(c,e,sp)
return c:IsType(TYPE_UNION) and c:IsLevelBelow(4) and c:IsCanBeSpecialSummoned(e,0,sp,false,false) return c:IsType(TYPE_UNION) and c:IsLevelBelow(4) and c:IsCanBeSpecialSummoned(e,0,sp,false,false)
end end
......
...@@ -23,6 +23,7 @@ function c66399653.initial_effect(c) ...@@ -23,6 +23,7 @@ function c66399653.initial_effect(c)
aux.RegisterMergedDelayedEvent(c,66399653,EVENT_SUMMON_SUCCESS,g) aux.RegisterMergedDelayedEvent(c,66399653,EVENT_SUMMON_SUCCESS,g)
aux.RegisterMergedDelayedEvent(c,66399653,EVENT_SPSUMMON_SUCCESS,g) aux.RegisterMergedDelayedEvent(c,66399653,EVENT_SPSUMMON_SUCCESS,g)
end end
c66399653.has_text_type=TYPE_UNION
function c66399653.thfilter(c) function c66399653.thfilter(c)
return c:IsRace(RACE_MACHINE) and c:IsAttribute(ATTRIBUTE_LIGHT) return c:IsRace(RACE_MACHINE) and c:IsAttribute(ATTRIBUTE_LIGHT)
and c:IsType(TYPE_UNION) and c:IsAbleToHand() and c:IsType(TYPE_UNION) and c:IsAbleToHand()
......
...@@ -11,6 +11,7 @@ function c72083436.initial_effect(c) ...@@ -11,6 +11,7 @@ function c72083436.initial_effect(c)
e1:SetOperation(c72083436.daop) e1:SetOperation(c72083436.daop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c72083436.has_text_type=TYPE_UNION
function c72083436.cfilter(c) function c72083436.cfilter(c)
return c:IsType(TYPE_UNION) return c:IsType(TYPE_UNION)
end end
......
...@@ -18,6 +18,7 @@ function c77411244.initial_effect(c) ...@@ -18,6 +18,7 @@ function c77411244.initial_effect(c)
e5:SetOperation(c77411244.thop) e5:SetOperation(c77411244.thop)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
c77411244.has_text_type=TYPE_UNION
function c77411244.filter(c) function c77411244.filter(c)
return c:IsRace(RACE_MACHINE) and c:IsAttribute(ATTRIBUTE_LIGHT) return c:IsRace(RACE_MACHINE) and c:IsAttribute(ATTRIBUTE_LIGHT)
end end
......
...@@ -13,6 +13,7 @@ function c78349103.initial_effect(c) ...@@ -13,6 +13,7 @@ function c78349103.initial_effect(c)
e5:SetOperation(c78349103.sop) e5:SetOperation(c78349103.sop)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
c78349103.has_text_type=TYPE_UNION
function c78349103.filter(c) function c78349103.filter(c)
return c:IsRace(RACE_MACHINE) return c:IsRace(RACE_MACHINE)
end end
......
...@@ -11,6 +11,7 @@ function c8964854.initial_effect(c) ...@@ -11,6 +11,7 @@ function c8964854.initial_effect(c)
e1:SetOperation(c8964854.operation) e1:SetOperation(c8964854.operation)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c8964854.has_text_type=TYPE_UNION
function c8964854.condition(e,tp,eg,ep,ev,re,r,rp) function c8964854.condition(e,tp,eg,ep,ev,re,r,rp)
return (Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE) return (Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE)
end end
......
...@@ -10,6 +10,7 @@ function c91597389.initial_effect(c) ...@@ -10,6 +10,7 @@ function c91597389.initial_effect(c)
e1:SetOperation(c91597389.operation) e1:SetOperation(c91597389.operation)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
c91597389.has_text_type=TYPE_UNION
function c91597389.filter(c,tp) function c91597389.filter(c,tp)
return c:IsType(TYPE_UNION) and Duel.IsExistingMatchingCard(c91597389.filter2,tp,LOCATION_MZONE,0,1,nil,c) return c:IsType(TYPE_UNION) and Duel.IsExistingMatchingCard(c91597389.filter2,tp,LOCATION_MZONE,0,1,nil,c)
end end
......
...@@ -30,6 +30,7 @@ function c95471006.initial_effect(c) ...@@ -30,6 +30,7 @@ function c95471006.initial_effect(c)
e2:SetOperation(c95471006.sprop) e2:SetOperation(c95471006.sprop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
c95471006.has_text_type=TYPE_UNION
function c95471006.cfilter(c,tp) function c95471006.cfilter(c,tp)
return c:IsRace(RACE_MACHINE) and c:IsAttribute(ATTRIBUTE_LIGHT) return c:IsRace(RACE_MACHINE) and c:IsAttribute(ATTRIBUTE_LIGHT)
and c:IsType(TYPE_UNION) and c:IsPreviousControler(tp) and c:IsFaceup() and c:IsType(TYPE_UNION) and c:IsPreviousControler(tp) and c:IsFaceup()
......
...@@ -13,6 +13,7 @@ function c99249638.initial_effect(c) ...@@ -13,6 +13,7 @@ function c99249638.initial_effect(c)
e4:SetOperation(c99249638.reop) e4:SetOperation(c99249638.reop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
c99249638.has_text_type=TYPE_UNION
function c99249638.recost(e,tp,eg,ep,ev,re,r,rp,chk) function c99249638.recost(e,tp,eg,ep,ev,re,r,rp,chk)
local tc=e:GetHandler():GetEquipTarget() local tc=e:GetHandler():GetEquipTarget()
e:SetLabelObject(tc) e:SetLabelObject(tc)
......
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