Commit c6b4c50d authored by Chrono-Genex's avatar Chrono-Genex Committed by GitHub

fix (#1680)

parent eae593f9
......@@ -50,7 +50,7 @@ end
function c51405049.regop(e,tp,eg,ep,ev,re,r,rp)
if e:GetLabel()==0 then return end
local tc=eg:GetFirst()
if tc:IsCode(e:GetLabel()) then
if tc:IsSummonPlayer(tp) and tc:IsCode(e:GetLabel()) then
e:SetLabel(0)
end
end
......
......@@ -61,9 +61,12 @@ function c6552971.activate(e,tp,eg,ep,ev,re,r,rp)
e3:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e3,tp)
end
function c6552971.regfilter(c,tp,code)
return c:IsSummonPlayer(tp) and c:IsCode(code)
end
function c6552971.regop(e,tp,eg,ep,ev,re,r,rp)
if e:GetLabel()==0 then return end
if eg:IsExists(Card.IsCode,1,nil,e:GetLabel()) then
if eg:IsExists(c6552971.regfilter,1,nil,tp,e:GetLabel()) then
e:SetLabel(0)
end
end
......
......@@ -59,8 +59,11 @@ function c65877963.spop(e,tp,eg,ep,ev,re,r,rp)
e2:SetLabelObject(e1)
Duel.RegisterEffect(e2,tp)
end
function c65877963.regfilter(c,tp)
return c:IsSummonPlayer(tp) and c:IsType(TYPE_RITUAL)
end
function c65877963.regop(e,tp,eg,ep,ev,re,r,rp)
if eg:IsExists(Card.IsType,1,nil,TYPE_RITUAL) then
if eg:IsExists(c65877963.regfilter,1,nil,tp) then
e:SetLabel(1)
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