Commit 70c80054 authored by mercury233's avatar mercury233

fix

parent cfd185a7
......@@ -5,13 +5,16 @@ function c10755153.initial_effect(c)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CANNOT_SUMMON)
e1:SetCondition(c10755153.sumlimit)
e1:SetCondition(c10755153.sumcon)
c:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EFFECT_CANNOT_FLIP_SUMMON)
c:RegisterEffect(e2)
local e3=e1:Clone()
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e3:SetCode(EFFECT_SPSUMMON_CONDITION)
e3:SetValue(c10755153.sumlimit)
c:RegisterEffect(e3)
--destroy
local e4=Effect.CreateEffect(c)
......@@ -28,9 +31,12 @@ end
function c10755153.cfilter(c)
return c:IsFaceup() and c:IsCode(95638658)
end
function c10755153.sumlimit(e)
function c10755153.sumcon(e)
return not Duel.IsExistingMatchingCard(c10755153.cfilter,e:GetHandlerPlayer(),LOCATION_ONFIELD,0,1,nil)
end
function c10755153.sumlimit(e,se,sp,st,pos,tp)
return not Duel.IsExistingMatchingCard(c10755153.cfilter,sp,LOCATION_ONFIELD,0,1,nil)
end
function c10755153.costfilter(c,ec)
return c:IsFaceup() and c:GetEquipTarget()==ec and c:IsAbleToGraveAsCost()
end
......
......@@ -5,13 +5,16 @@ function c46037213.initial_effect(c)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CANNOT_SUMMON)
e1:SetCondition(c46037213.sumlimit)
e1:SetCondition(c46037213.sumcon)
c:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EFFECT_CANNOT_FLIP_SUMMON)
c:RegisterEffect(e2)
local e3=e1:Clone()
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e3:SetCode(EFFECT_SPSUMMON_CONDITION)
e3:SetValue(c46037213.sumlimit)
c:RegisterEffect(e3)
--spsummon
local e4=Effect.CreateEffect(c)
......@@ -27,9 +30,12 @@ end
function c46037213.cfilter(c)
return c:IsFaceup() and c:IsCode(21900719)
end
function c46037213.sumlimit(e)
function c46037213.sumcon(e)
return not Duel.IsExistingMatchingCard(c46037213.cfilter,e:GetHandlerPlayer(),LOCATION_ONFIELD,0,1,nil)
end
function c46037213.sumlimit(e,se,sp,st,pos,tp)
return Duel.IsExistingMatchingCard(c46037213.cfilter,sp,LOCATION_ONFIELD,0,1,nil)
end
function c46037213.spcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsReason(REASON_DESTROY)
end
......
......@@ -5,13 +5,16 @@ function c47150851.initial_effect(c)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CANNOT_SUMMON)
e1:SetCondition(c47150851.sumlimit)
e1:SetCondition(c47150851.sumcon)
c:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EFFECT_CANNOT_FLIP_SUMMON)
c:RegisterEffect(e2)
local e3=e1:Clone()
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e3:SetCode(EFFECT_SPSUMMON_CONDITION)
e3:SetValue(c47150851.sumlimit)
c:RegisterEffect(e3)
--spsummon
local e4=Effect.CreateEffect(c)
......@@ -25,9 +28,12 @@ end
function c47150851.cfilter(c)
return c:IsFaceup() and c:IsCode(32022366)
end
function c47150851.sumlimit(e)
function c47150851.sumcon(e)
return not Duel.IsExistingMatchingCard(c47150851.cfilter,e:GetHandlerPlayer(),LOCATION_ONFIELD,0,1,nil)
end
function c47150851.sumlimit(e,se,sp,st,pos,tp)
return Duel.IsExistingMatchingCard(c47150851.cfilter,sp,LOCATION_ONFIELD,0,1,nil)
end
function c47150851.spcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
......
......@@ -5,13 +5,16 @@ function c73544866.initial_effect(c)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CANNOT_SUMMON)
e1:SetCondition(c73544866.sumlimit)
e1:SetCondition(c73544866.sumcon)
c:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EFFECT_CANNOT_FLIP_SUMMON)
c:RegisterEffect(e2)
local e3=e1:Clone()
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e3:SetCode(EFFECT_SPSUMMON_CONDITION)
e3:SetValue(c73544866.sumlimit)
c:RegisterEffect(e3)
--negate
local e4=Effect.CreateEffect(c)
......@@ -32,9 +35,12 @@ end
function c73544866.cfilter(c)
return c:IsFaceup() and c:IsCode(68427465)
end
function c73544866.sumlimit(e)
function c73544866.sumcon(e)
return not Duel.IsExistingMatchingCard(c73544866.cfilter,e:GetHandlerPlayer(),LOCATION_ONFIELD,0,1,nil)
end
function c73544866.sumlimit(e,se,sp,st,pos,tp)
return Duel.IsExistingMatchingCard(c73544866.cfilter,sp,LOCATION_ONFIELD,0,1,nil)
end
function c73544866.negop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local bc=c:GetBattleTarget()
......
......@@ -5,13 +5,16 @@ function c74367458.initial_effect(c)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CANNOT_SUMMON)
e1:SetCondition(c74367458.sumlimit)
e1:SetCondition(c74367458.sumcon)
c:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EFFECT_CANNOT_FLIP_SUMMON)
c:RegisterEffect(e2)
local e3=e1:Clone()
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e3:SetCode(EFFECT_SPSUMMON_CONDITION)
e3:SetValue(c74367458.sumlimit)
c:RegisterEffect(e3)
--equip
local e4=Effect.CreateEffect(c)
......@@ -30,9 +33,12 @@ end
function c74367458.cfilter(c)
return c:IsFaceup() and c:IsCode(69243953)
end
function c74367458.sumlimit(e)
function c74367458.sumcon(e)
return not Duel.IsExistingMatchingCard(c74367458.cfilter,e:GetHandlerPlayer(),LOCATION_ONFIELD,0,1,nil)
end
function c74367458.sumlimit(e,se,sp,st,pos,tp)
return Duel.IsExistingMatchingCard(c74367458.cfilter,sp,LOCATION_ONFIELD,0,1,nil)
end
function c74367458.filter(c,ec)
return c:IsType(TYPE_EQUIP) and c:CheckEquipTarget(ec)
end
......
......@@ -5,13 +5,16 @@ function c9633505.initial_effect(c)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CANNOT_SUMMON)
e1:SetCondition(c9633505.sumlimit)
e1:SetCondition(c9633505.sumcon)
c:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EFFECT_CANNOT_FLIP_SUMMON)
c:RegisterEffect(e2)
local e3=e1:Clone()
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e3:SetCode(EFFECT_SPSUMMON_CONDITION)
e3:SetValue(c9633505.sumlimit)
c:RegisterEffect(e3)
--immune spell
local e4=Effect.CreateEffect(c)
......@@ -32,9 +35,12 @@ end
function c9633505.cfilter(c)
return c:IsFaceup() and c:IsCode(95515060)
end
function c9633505.sumlimit(e)
function c9633505.sumcon(e)
return not Duel.IsExistingMatchingCard(c9633505.cfilter,e:GetHandlerPlayer(),LOCATION_ONFIELD,0,1,nil)
end
function c9633505.sumlimit(e,se,sp,st,pos,tp)
return Duel.IsExistingMatchingCard(c9633505.cfilter,sp,LOCATION_ONFIELD,0,1,nil)
end
function c9633505.efilter(e,te)
return te:IsActiveType(TYPE_SPELL)
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