Commit 7969ceac authored by Grajade's avatar Grajade

Update c74561057.lua

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