Commit 370f3ce2 authored by mercury233's avatar mercury233

fix

parent dbbcb1a2
......@@ -30,7 +30,8 @@ function c101112004.setcon(e,tp,eg,ep,ev,re,r,rp)
end
function c101112004.spcon(e,c)
if c==nil then return true end
return c101112004.setcon(e) and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0
local tp=c:GetControler()
return c101112004.setcon(e,tp) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
end
function c101112004.setcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
......
......@@ -41,7 +41,7 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
function s.operation(e,tp,eg,ep,ev,re,r,rp)
if not Duel.NegateActivation(ev) then return end
if Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_MZONE,0,1,nil)
if Duel.IsExistingMatchingCard(s.filter,tp,LOCATION_MZONE+LOCATION_GRAVE,0,1,nil)
and re:GetHandler():IsRelateToEffect(re)
and Duel.SelectYesNo(tp,aux.Stringid(id,0)) then
Duel.BreakEffect()
......
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