Commit 63e4cfbd authored by Nemo Ma's avatar Nemo Ma

Update c33701421.lua

parent 10206e7d
...@@ -15,7 +15,7 @@ function cm.initial_effect(c) ...@@ -15,7 +15,7 @@ function cm.initial_effect(c)
e2:SetOperation(cm.condition) e2:SetOperation(cm.condition)
e2:SetOperation(cm.operation) e2:SetOperation(cm.operation)
c:RegisterEffect(e2) c:RegisterEffect(e2)
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(e:GetHandler())
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e3:SetCode(EFFECT_DESTROY_REPLACE) e3:SetCode(EFFECT_DESTROY_REPLACE)
e3:SetTarget(cm.reptg) e3:SetTarget(cm.reptg)
...@@ -63,7 +63,7 @@ function cm.reptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -63,7 +63,7 @@ function cm.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
return true return true
end end
function cm.repop(e,tp,eg,ep,ev,re,r,rp,chk) function cm.repop(e,tp,eg,ep,ev,re,r,rp,chk)
local ct=math.ceil(c:GetCounter(0x144e)/2) local ct=math.ceil(e:GetHandler():GetCounter(0x144e)/2)
e:GetHandler():RemoveCounter(tp,0x144e,ct,REASON_EFFECT) e:GetHandler():RemoveCounter(tp,0x144e,ct,REASON_EFFECT)
end end
function cm.descon(e,tp,eg,ep,ev,re,r,rp) function cm.descon(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