Commit 01fe1dcf authored by Tachibana's avatar Tachibana

得得得得得

parent 25565112
Pipeline #13471 passed with stages
in 28 minutes and 35 seconds
......@@ -30,6 +30,7 @@ function cm.initial_effect(c)
e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetRange(LOCATION_FZONE)
e3:SetCountLimit(1)
e3:SetCost(cm.rmcost)
e3:SetTarget(cm.rmtg)
e3:SetOperation(cm.rmop)
c:RegisterEffect(e3)
......@@ -66,6 +67,10 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
end
end
--remove to deck
function cm.rmcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then Duel.CheckLPCost(tp,1000) end
Duel.PayLPCost(tp,1000)
end
function cm.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsAbleToDeck,tp,LOCATION_REMOVED,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,6,tp,LOCATION_REMOVED)
......
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