Commit d77ae5a3 authored by Tachibana's avatar Tachibana

12

parent bc7c5581
......@@ -83,8 +83,9 @@ function cm.tgop(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e1,tp)
end
function cm.retop(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsLocation(LOCATION_FZONE) then return end
if not e:GetHandler():IsLocation(LOCATION_FZONE) then return end
Duel.Recover(tp,1000,REASON_EFFECT)
e:Reset()
end
function cm.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandlerPlayer()~=tp end
......
......@@ -28,6 +28,7 @@ function cm.initial_effect(c)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1)
e2:SetCode(EVENT_FREE_CHAIN)
e2:SetCost(cm.incost)
e2:SetTarget(cm.indtg)
e2:SetOperation(cm.indop)
c:RegisterEffect(e2)
......@@ -43,6 +44,10 @@ function cm.initial_effect(c)
e3:SetOperation(cm.thop)
c:RegisterEffect(e3)
end
function cm.incost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckLPCost(tp,1000) end
Duel.PayLPCost(tp,1000)
end
function cm.dircon(e)
return e:GetHandler():GetColumnGroup():FilterCount(Card.IsFacedown,nil)>0
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