Commit 9c9ca774 authored by DailyShana's avatar DailyShana

fix

parent d9142b2d
...@@ -49,8 +49,9 @@ function c29726552.spop(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -49,8 +49,9 @@ function c29726552.spop(e,tp,eg,ep,ev,re,r,rp,c)
end end
function c29726552.spcon2(e,c) function c29726552.spcon2(e,c)
if c==nil then return true end if c==nil then return true end
return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 local tp=c:GetControler()
and Duel.IsExistingMatchingCard(c29726552.cfilter,c:GetControler(),0,LOCATION_MZONE,1,nil) return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c29726552.cfilter,tp,0,LOCATION_MZONE,1,nil)
end end
function c29726552.filter(c,tp) function c29726552.filter(c,tp)
return c:IsFaceup() and c:IsControler(1-tp) return c:IsFaceup() and c:IsControler(1-tp)
......
...@@ -24,7 +24,7 @@ function c68182934.descon(e,tp,eg,ep,ev,re,r,rp) ...@@ -24,7 +24,7 @@ function c68182934.descon(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst() local tc=eg:GetFirst()
return ep~=tp and tc:IsControler(tp) and tc:IsType(TYPE_NORMAL) return ep~=tp and tc:IsControler(tp) and tc:IsType(TYPE_NORMAL)
end end
function c68182934.destg(e,tp,eg,ep,ev,re,r,rp,chk) function c68182934.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsDestructable() end if chkc then return chkc:IsOnField() and chkc:IsDestructable() end
if chk==0 then return Duel.IsExistingTarget(Card.IsDestructable,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end if chk==0 then return Duel.IsExistingTarget(Card.IsDestructable,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
......
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