Commit 70aa656a authored by TanakaKotoha's avatar TanakaKotoha

fix

parent 96bd9079
......@@ -51,11 +51,12 @@ function cm.down(c)
return c:IsSetCard(0x3340) or c:IsSetCard(0x3341)
end
function cm.cfilter(c,tp)
return c:GetPreviousLocation()==LOCATION_ONFIELD and c:GetPreviousControler()==tp
return c:IsPreviousLocation(LOCATION_ONFIELD) and c:GetPreviousControler()==tp
end
function cm.acop(e,tp,eg,ep,ev,re,r,rp)
if eg:IsExists(cm.cfilter,1,nil,tp) then
e:GetHandler():AddCounter(0x34f,1)
local ct=eg:FilterCount(cm.cfilter,nil,tp)
if ct>0 then
e:GetHandler():AddCounter(0x34f,ct,true)
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