Commit fb07679b authored by GuGu's avatar GuGu

Update c74561067.lua 2效果格子检测

parent 55a6d4f6
Pipeline #16449 passed with stage
in 2 minutes and 22 seconds
......@@ -85,20 +85,20 @@ end
function cCardno.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
local tc=c:GetEquipTarget()
if chk==0 then return tc and tc:IsReleasable() end
if chk==0 then return tc and tc:IsReleasable() and Duel.GetMZoneCount(tp,tc,tp)>0 end
Duel.Release(tc,REASON_COST)
end
function cCardno.spfilter(c,e,tp)
return c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsSetCard(0x713,0x5208)
end
function cCardno.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.GetMZoneCount(tp)>0 and Duel.IsExistingMatchingCard(cCardno.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
if chk==0 then return Duel.IsExistingMatchingCard(cCardno.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0)
Duel.SetOperationInfo(0,CATEGORY_EQUIP,e:GetHandler(),1,0,0)
end
function cCardno.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if Duel.GetMZoneCount(tp)>0 and Duel.IsExistingTarget(cCardno.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) then
if Duel.IsExistingTarget(cCardno.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,cCardno.spfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
local tc=g:GetFirst()
......
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