Commit 0f8ed97a authored by 伊蕾娜's avatar 伊蕾娜

暗黑调整限制检测

parent c562bd1e
...@@ -52,7 +52,7 @@ function c16000006.value(e,c) ...@@ -52,7 +52,7 @@ function c16000006.value(e,c)
return c:GetLevel()*300 return c:GetLevel()*300
end end
function c16000006.synlimit(e,c) function c16000006.synlimit(e,c)
if not c:IsSetCard(0x5208) then return true end if c and not c:IsSetCard(0x5208) then return true end
end end
function c16000006.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c16000006.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsDiscardable() end if chk==0 then return e:GetHandler():IsDiscardable() end
......
...@@ -10,7 +10,7 @@ function cCardno.initial_effect(c) ...@@ -10,7 +10,7 @@ function cCardno.initial_effect(c)
e2:SetCode(EFFECT_SPSUMMON_PROC) e2:SetCode(EFFECT_SPSUMMON_PROC)
e2:SetProperty(EFFECT_FLAG_UNCOPYABLE) e2:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e2:SetRange(LOCATION_HAND) e2:SetRange(LOCATION_HAND)
e2:SetCountLimit(1,Cardno+EFFECT_COUNT_CODE_OATH) e2:SetCountLimit(1,Cardno)
e2:SetCondition(cCardno.spcon) e2:SetCondition(cCardno.spcon)
e2:SetOperation(cCardno.spop) e2:SetOperation(cCardno.spop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
...@@ -112,5 +112,5 @@ function cCardno.spop(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -112,5 +112,5 @@ function cCardno.spop(e,tp,eg,ep,ev,re,r,rp,c)
end end
--synlimit --synlimit
function cCardno.synlimit(e,c) function cCardno.synlimit(e,c)
if not c:IsSetCard(0x5208) then return true end if c and not c:IsSetCard(0x5208) then return true end
end end
\ No newline at end of file
...@@ -118,7 +118,7 @@ function cCardno.reop(e,tp,eg,ep,ev,re,r,rp) ...@@ -118,7 +118,7 @@ function cCardno.reop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function cCardno.synlimit(e,c) function cCardno.synlimit(e,c)
if not c:IsSetCard(0x5208) then return true end if c and not c:IsSetCard(0x5208) then return true end
end end
-- --
function cCardno.spcon(e,tp,eg,ep,ev,re,r,rp) function cCardno.spcon(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