Commit fca264e6 authored by GuGu's avatar GuGu

Update c29016.lua 格子检测

parent d505d920
Pipeline #21347 passed with stage
in 1 minute and 10 seconds
......@@ -34,18 +34,17 @@ end
c29016.DescSetName=0x826
function c29016.filter(c)
return c:IsAbleToRemoveAsCost()
function c29016.filter(c,tp)
return c:IsAbleToRemoveAsCost() and Duel.GetMZoneCount(1-tp,c,tp)>0
end
function c29016.spcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
return Duel.GetLocationCount(1-tp,LOCATION_MZONE)>-1
and Duel.IsExistingMatchingCard(c29016.filter,tp,0,LOCATION_MZONE,1,nil)
return Duel.IsExistingMatchingCard(c29016.filter,tp,0,LOCATION_MZONE,1,nil,tp)
end
function c29016.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local g=Duel.SelectMatchingCard(tp,c29016.filter,tp,0,LOCATION_MZONE,1,1,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,c29016.filter,tp,0,LOCATION_MZONE,1,1,nil,tp)
Duel.Remove(g,POS_FACEUP,REASON_COST)
end
function c29016.cost(e,tp,eg,ep,ev,re,r,rp,chk)
......
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