Commit a46f5089 authored by Nemo Ma's avatar Nemo Ma

fix

parent 9c6c1b43
...@@ -3,10 +3,10 @@ function c188813.initial_effect(c) ...@@ -3,10 +3,10 @@ function c188813.initial_effect(c)
--link summon --link summon
c:EnableReviveLimit() c:EnableReviveLimit()
aux.AddLinkProcedure(c,c188813.matfilter,1,1) aux.AddLinkProcedure(c,c188813.matfilter,1,1)
aux.EnableUnionAttribute(c,c188813.eqlimit) aux.EnableUnionAttribute(c,function(e,c)return (c:IsRace(RACE_MACHINE) and c:IsAttribute(ATTRIBUTE_LIGHT)) or e:GetHandler():GetEquipTarget()==c end)
--equip --equip
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(188811,0)) e1:SetDescription(aux.Stringid(188813,0))
e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCategory(CATEGORY_EQUIP) e1:SetCategory(CATEGORY_EQUIP)
e1:SetType(EFFECT_TYPE_IGNITION) e1:SetType(EFFECT_TYPE_IGNITION)
...@@ -25,9 +25,7 @@ function c188813.initial_effect(c) ...@@ -25,9 +25,7 @@ function c188813.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--ac --ac
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY)
e3:SetCode(EVENT_EQUIP)
e3:SetRange(LOCATION_SZONE) e3:SetRange(LOCATION_SZONE)
e3:SetCountLimit(1,188813) e3:SetCountLimit(1,188813)
e3:SetCondition(c188813.accon) e3:SetCondition(c188813.accon)
...@@ -35,9 +33,6 @@ function c188813.initial_effect(c) ...@@ -35,9 +33,6 @@ function c188813.initial_effect(c)
e3:SetOperation(c188813.acop) e3:SetOperation(c188813.acop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c188813.eqlimit(e,c)
return (c:IsRace(RACE_MACHINE) and c:IsAttribute(ATTRIBUTE_LIGHT)) or e:GetHandler():GetEquipTarget()==c
end
function c188813.matfilter(c) function c188813.matfilter(c)
return c:IsType(TYPE_UNION) and not c:IsCode(188813) return c:IsType(TYPE_UNION) and not c:IsCode(188813)
end end
...@@ -85,9 +80,6 @@ end ...@@ -85,9 +80,6 @@ end
function c188813.acfilter(c,tp) function c188813.acfilter(c,tp)
return c:IsCode(188812) and c:GetActivateEffect():IsActivatable(tp) return c:IsCode(188812) and c:GetActivateEffect():IsActivatable(tp)
end end
function c188813.accon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsContains(e:GetHandler())
end
function c188813.actg(e,tp,eg,ep,ev,re,r,rp,chk) function c188813.actg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c188813.acfilter,tp,LOCATION_DECK,0,1,nil,tp) end if chk==0 then return Duel.IsExistingMatchingCard(c188813.acfilter,tp,LOCATION_DECK,0,1,nil,tp) end
end end
......
...@@ -42,7 +42,7 @@ function c67200278.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -42,7 +42,7 @@ function c67200278.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c67200278.spfilter,1,nil,tp) return eg:IsExists(c67200278.spfilter,1,nil,tp)
end end
function c67200278.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c67200278.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP) end if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP) and Duel.IsExistingMatchingCard(c67200278.pfilter,tp,LOCATION_EXTRA,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
function c67200278.spop(e,tp,eg,ep,ev,re,r,rp) function c67200278.spop(e,tp,eg,ep,ev,re,r,rp)
......
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