Commit 7969ceac authored by Grajade's avatar Grajade

Update c74561057.lua

parent 66cd6585
......@@ -14,11 +14,9 @@ function cCardno.initial_effect(c)
c:RegisterEffect(e1)
--lv&atk up
local e2=Effect.CreateEffect(c)
e2:SetCategory(0)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e2:SetCode(EVENT_CHAINING)
e2:SetRange(LOCATION_MZONE)
e2:SetCondition(cCardno.lvcon)
e2:SetOperation(cCardno.lvop)
c:RegisterEffect(e2)
--disable
......@@ -36,14 +34,13 @@ end
--disable
function cCardno.disable(e,c)
local lv=e:GetHandler():GetLevel()
local tlv=c:GetLevel()
if not tlv and c:IsType(TYPE_XYZ) then tlv=c:GetRank() end
local tlv=0
if c:IsType(TYPE_XYZ) then
tlv=c:GetRank()
else tlv=c:GetLevel() end
return lv>0 and tlv>0 and lv % tlv == 0
end
--lv&atk up
function cCardno.lvcon(e,tp,eg,ep,ev,re,r,rp)
return true
end
function cCardno.lvop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local e1=Effect.CreateEffect(c)
......
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