Commit 36a8acb0 authored by Tachibana's avatar Tachibana

tnndx

parent 16bae0fb
Pipeline #2715 passed with stages
in 26 minutes and 16 seconds
......@@ -61,7 +61,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
end
function cm.bm_check_operation(e,tp,eg,ep,ev,re,r,rp)
--to hand
local c=e:GetHandler()
local c=Duel.GetFirstMatchingCard(Card.IsCode,tp,LOCATION_DECK,0,1,nil,m)
if c:IsLocation(LOCATION_DECK) then
Duel.SendtoHand(c,tp,REASON_EFFECT)
end
......
......@@ -19,6 +19,7 @@ function cm.initial_effect(c)
e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_FREE_CHAIN)
e2:SetHintTiming(0,TIMINGS_CHECK_MONSTER)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP)
e2:SetRange(LOCATION_HAND)
e2:SetCountLimit(1,m+1)
e2:SetCost(cm.cost)
......@@ -59,7 +60,7 @@ function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and cm.gvfilter(chkc) end
if chk==0 then return ft>-1 and Duel.IsExistingTarget(cm.gvfilter,tp,LOCATION_MZONE,0,1,nil)end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectTarget(tp,cm.gvfilter,tp,LOCATION_MZONE,0,1,1,nil)
Duel.SelectTarget(tp,cm.gvfilter,tp,LOCATION_MZONE,0,1,1,nil)
end
function cm.op(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
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