Commit e83a760d authored by Nemo Ma's avatar Nemo Ma

fix

parent d1b1a2e1
......@@ -100,6 +100,7 @@ function cm.effectfilter(e,ct)
end
function cm.regop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
--activate limit
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
......@@ -360,7 +361,7 @@ function cm.TojiEquip(ec,e,tp,eg,ep,ev,re,r,rp)
e5:SetCountLimit(1)
token:RegisterEffect(e5)
--move
local e1=Effect.CreateEffect(c)
local e1=Effect.CreateEffect(ec)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetRange(LOCATION_SZONE)
......
......@@ -63,10 +63,10 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function cm.checkop(e,tp,eg,ep,ev,re,r,rp)
cm[tc:GetOwnerPlayer()]=cm[tc:GetOwnerPlayer()]+1
cm[ep]=cm[ep]+ev
end
function cm.checkop1(e,tp,eg,ep,ev,re,r,rp)
cm[tc:GetOwnerPlayer()]=cm[tc:GetOwnerPlayer()+2]+1
cm[ep+2]=cm[ep+2]+2
end
function cm.clear(e,tp,eg,ep,ev,re,r,rp)
cm[0]=0
......
......@@ -87,7 +87,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function cm.checkop(e,tp,eg,ep,ev,re,r,rp)
if ep==tp and 1-ep==rp and bit.band(r,REASON_BATTLE+REASON_EFFECT)~=0 then
if 1-ep==rp and bit.band(r,REASON_BATTLE+REASON_EFFECT)~=0 then
cm[ep]=cm[ep]+ev
end
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