Commit 7b68aecf authored by nanahira's avatar nanahira

fix

parent d685eaaa
...@@ -101,18 +101,16 @@ function cm.ReplaceSetMaterial(c,...) ...@@ -101,18 +101,16 @@ function cm.ReplaceSetMaterial(c,...)
local ex=Effect.CreateEffect(c) local ex=Effect.CreateEffect(c)
ex:SetType(EFFECT_TYPE_SINGLE) ex:SetType(EFFECT_TYPE_SINGLE)
ex:SetCode(m-1000) ex:SetCode(m-1000)
ex:SetRange(LOCATION_MZONE)
ex:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
ex:SetReset(RESET_EVENT+0xfe0000) ex:SetReset(RESET_EVENT+0xfe0000)
c:RegisterEffect(ex,true) c:RegisterEffect(ex,true)
local ex=Effect.CreateEffect(c) local ex=Effect.CreateEffect(c)
ex:SetType(EFFECT_TYPE_SINGLE) ex:SetType(EFFECT_TYPE_SINGLE)
ex:SetCode(EFFECT_ADD_CODE) ex:SetCode(EFFECT_ADD_CODE)
ex:SetRange(LOCATION_MZONE)
ex:SetValue(37564765) ex:SetValue(37564765)
ex:SetProperty(EFFECT_FLAG_SINGLE_RANGE+EFFECT_FLAG_CANNOT_DISABLE) ex:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
ex:SetReset(RESET_EVENT+0xfe0000) ex:SetReset(RESET_EVENT+0xfe0000)
c:RegisterEffect(ex,true) c:RegisterEffect(ex,true)
cm.op(e2,c:GetControler())
return table.unpack(res) return table.unpack(res)
end end
function cm.copyfilter(c) function cm.copyfilter(c)
...@@ -150,7 +148,7 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp) ...@@ -150,7 +148,7 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp)
f(tc,e,forced) f(tc,e,forced)
end end
for tc in aux.Next(cg) do for tc in aux.Next(cg) do
copyt[tc]=c:CopyEffect(tc:GetOriginalCode(),RESET_EVENT+0x1fe0000,1) copyt[tc]=c:CopyEffect(tc:GetOriginalCode(),RESET_EVENT+0xfe0000,1)
end end
Card.RegisterEffect=f Card.RegisterEffect=f
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