Commit f2ee1702 authored by Tachibana's avatar Tachibana

12

parent ed8f344c
Pipeline #3793 passed with stages
in 33 minutes and 28 seconds
......@@ -96,7 +96,7 @@ function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetColumnGroup():FilterCount(Card.IsFacedown,nil)>0
end
function cm.efilter(e,te)
local tp=e:GetControler()
local tp=e:GetHandlerPlayer()
return te:GetOwnerPlayer()==1-tp
end
function cm.igcon(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -57,7 +57,6 @@ function cm.indop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_CHAIN_END)
e1:SetReset(RESET_EVENT+EVENT_CHAIN_END)
e1:SetCountLimit(1)
e1:SetOperation(cm.retop)
Duel.RegisterEffect(e1,tp)
......@@ -69,6 +68,7 @@ function cm.retop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,cm.spfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,LOCATION_GRAVE+LOCATION_REMOVED,1,1,nil,e,tp)
if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
e:Reset()
end
end
function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
......
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