Commit 726fe28c authored by GuGu's avatar GuGu

Update c74561065.lua

parent c95bbaad
Pipeline #29194 passed with stage
in 10 seconds
......@@ -75,17 +75,18 @@ function cCardno.tkop(e,tp,eg,ep,ev,re,r,rp)
end
end
--special summon
function cCardno.spfilter(c)
function cCardno.spfilter(c,tp)
return c:IsType(TYPE_MONSTER) and c:IsType(TYPE_SPIRIT) and c:IsReleasable()
and (c:IsLocation(LOCATION_HAND) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 or Duel.GetMZoneCount(tp,c)>0)
end
function cCardno.spcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
return Duel.GetMZoneCount(tp)>0 and Duel.IsExistingMatchingCard(cCardno.spfilter,tp,LOCATION_HAND+LOCATION_MZONE,0,1,nil)
return Duel.IsExistingMatchingCard(cCardno.spfilter,tp,LOCATION_HAND+LOCATION_MZONE,0,1,c,tp)
end
function cCardno.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local g=Duel.SelectMatchingCard(tp,cCardno.spfilter,c:GetControler(),LOCATION_HAND+LOCATION_MZONE,0,1,1,nil)
local g=Duel.SelectMatchingCard(tp,cCardno.spfilter,c:GetControler(),LOCATION_HAND+LOCATION_MZONE,0,1,1,c,c:GetControler())
Duel.Release(g,REASON_COST)
end
--
......
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