Commit 9384de48 authored by nanahira's avatar nanahira

finishscript

parent dcc55b60
......@@ -25,7 +25,6 @@ function cm.initial_effect(c)
e1:SetHintTiming(0,TIMING_DRAW_PHASE)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetCost(cm.cost)
e1:SetTarget(cm.target1)
e1:SetOperation(cm.operation1)
c:RegisterEffect(e1)
......@@ -61,7 +60,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmCards(1-tp,tg)
end
function cm.rfilter(c,ec)
return cm[tc] and chkc:IsType(TYPE_TRAP) and ec:IsHasCardTarget(c)
return cm[c] and c:IsType(TYPE_TRAP) and ec:IsHasCardTarget(c)
end
function cm.target1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local c=e:GetHandler()
......@@ -76,6 +75,6 @@ function cm.operation1(e,tp,eg,ep,ev,re,r,rp)
if tc:IsRelateToEffect(e) then
local te=cm[tc]
if te then te:Reset() end
if c:IsHasCardTarget(c) then c:ReleaseRelation(tc) end
if c:IsHasCardTarget(tc) then c:CancelCardTarget(tc) end
end
end
\ No newline at end of file
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