Commit 4eceaeaa authored by Tachibana's avatar Tachibana

ybb

parent 7ef83ebd
Pipeline #10946 passed with stages
in 30 minutes and 18 seconds
...@@ -87,10 +87,31 @@ function cm.copyop(e,tp,eg,ep,ev,re,r,rp) ...@@ -87,10 +87,31 @@ function cm.copyop(e,tp,eg,ep,ev,re,r,rp)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
local code=tc:GetOriginalCodeRule() local code=tc:GetOriginalCodeRule()
if not tc:IsType(TYPE_TRAPMONSTER) then if not tc:IsType(TYPE_TRAPMONSTER) then
cid=c:CopyEffect(code,RESET_EVENT+RESETS_STANDARD) local cid=c:CopyEffect(m,RESET_EVENT+RESETS_STANDARD,0)
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e3:SetCode(EVENT_ADJUST)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e3:SetRange(0x7f)
e3:SetLabel(cid)
e3:SetLabelObject(c)
e3:SetOperation(cm.rstop)
tc:RegisterEffect(e3)
end end
end end
end end
function cm.eqlimit(e,c) function cm.eqlimit(e,c)
return c==e:GetLabelObject() return c==e:GetLabelObject()
end
function cm.rstop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetLabelObject()
local tc=e:GetHandler()
local cid=e:GetLabel()
if tc:GetEquipTarget()~=c then
if cid~=0 then
c:ResetEffect(cid,RESET_COPY)
c:ResetEffect(RESET_DISABLE,RESET_EVENT)
end
e:Reset()
end
end end
\ No newline at end of file
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