Commit 212309a3 authored by TanakaKotoha's avatar TanakaKotoha

y1s1

parent 71a2910c
...@@ -19,7 +19,6 @@ function cm.initial_effect(c) ...@@ -19,7 +19,6 @@ function cm.initial_effect(c)
e2:SetDescription(aux.Stringid(m,0)) e2:SetDescription(aux.Stringid(m,0))
e2:SetCategory(CATEGORY_REMOVE) e2:SetCategory(CATEGORY_REMOVE)
e2:SetType(EFFECT_TYPE_IGNITION) e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetCountLimit(1,m+10000) e2:SetCountLimit(1,m+10000)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetTarget(cm.target) e2:SetTarget(cm.target)
...@@ -52,7 +51,8 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -52,7 +51,8 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:GetLocation()==LOCATION_EXTRA and cm.cpfilter(chkc) end if chkc then return chkc:GetLocation()==LOCATION_EXTRA and cm.cpfilter(chkc) end
if chk==0 then return Duel.IsExistingTarget(cm.cpfilter,tp,LOCATION_EXTRA,LOCATION_EXTRA,1,nil) end if chk==0 then return Duel.IsExistingTarget(cm.cpfilter,tp,LOCATION_EXTRA,LOCATION_EXTRA,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectTarget(tp,cm.cpfilter,tp,LOCATION_EXTRA,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,cm.cpfilter,tp,LOCATION_EXTRA,0,1,1,nil)
Duel.SetTargetCard(g)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,1,0,0)
end end
function cm.operation(e,tp,eg,ep,ev,re,r,rp) function cm.operation(e,tp,eg,ep,ev,re,r,rp)
......
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