Commit c62cf6dc authored by Nemo Ma's avatar Nemo Ma

fix

parent e0b6f815
...@@ -116,7 +116,7 @@ function cm.adop2(e,tp,eg,ep,ev,re,r,rp) ...@@ -116,7 +116,7 @@ function cm.adop2(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function cm.filter2(c,re,tp,r) function cm.filter2(c,re,tp,r)
return c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsReason(REASON_RELEASE) and bit.band(r,REASON_COST)~=0 and re and aux.GetValueType(re)=="Effect" and re:IsActivated() and re:GetHandler()==c return c:IsAttribute(ATTRIBUTE_LIGHT) and c:IsReason(REASON_RELEASE) and bit.band(r,REASON_COST)~=0 and re and aux.GetValueType(re)=="Effect" and re:IsActivated() and re:GetHandler()==c and re:GetHandlerPlayer()==tp
end end
function cm.reptg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -46,6 +46,10 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -46,6 +46,10 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_CUSTOM+m) e1:SetCode(EVENT_CUSTOM+m)
e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetOperation(function(e,tp,eg,ep,ev,re,r,rp) local g=eg:Filter(cm.filter,1,nil,e) Duel.SendtoDeck(g,nil,2,REASON_RULE) end) e1:SetOperation(cm.desop3)
Duel.RegisterEffect(e1,0) Duel.RegisterEffect(e1,0)
end
function cm.desop3(e,tp,eg,ep,ev,re,r,rp)
local g=eg:Filter(cm.filter,nil,e)
Duel.SendtoDeck(g,nil,2,REASON_RULE)
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