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