Commit 0496157b authored by nekrozar's avatar nekrozar Committed by mercury233

fix (#1169)

parent 1d1991a1
...@@ -15,6 +15,7 @@ function c73551138.initial_effect(c) ...@@ -15,6 +15,7 @@ function c73551138.initial_effect(c)
e4:SetCategory(CATEGORY_DISABLE) e4:SetCategory(CATEGORY_DISABLE)
e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e4:SetCode(EVENT_SUMMON_SUCCESS) e4:SetCode(EVENT_SUMMON_SUCCESS)
e4:SetCondition(c73551138.negcon)
e4:SetOperation(c73551138.negop) e4:SetOperation(c73551138.negop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
local e5=e4:Clone() local e5=e4:Clone()
...@@ -24,6 +25,9 @@ end ...@@ -24,6 +25,9 @@ end
function c73551138.filter(c) function c73551138.filter(c)
return c:IsFaceup() and c:IsSetCard(0x3a) return c:IsFaceup() and c:IsSetCard(0x3a)
end end
function c73551138.negcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c73551138.filter,tp,LOCATION_MZONE,0,1,e:GetHandler())
end
function c73551138.negop(e,tp,eg,ep,ev,re,r,rp) function c73551138.negop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not Duel.IsExistingMatchingCard(c73551138.filter,tp,LOCATION_MZONE,0,1,c) then return end if not Duel.IsExistingMatchingCard(c73551138.filter,tp,LOCATION_MZONE,0,1,c) then return 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