Commit 16b6a4a7 authored by mercury233's avatar mercury233 Committed by GitHub

fix 超重武者装留チュウサイ

parent 3be8ae73
...@@ -69,15 +69,14 @@ end ...@@ -69,15 +69,14 @@ end
function c95500396.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c95500396.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
local tc=c:GetEquipTarget() local tc=c:GetEquipTarget()
if chk==0 then return c:GetControler()==tc:GetControler() and tc:IsReleasable() end if chk==0 then return c:GetControler()==tc:GetControler() and tc:IsReleasable() and Duel.GetMZoneCount(tp,tc)>0 end
Duel.Release(tc,REASON_COST) Duel.Release(tc,REASON_COST)
end end
function c95500396.spfilter(c,e,tp) function c95500396.spfilter(c,e,tp)
return c:IsSetCard(0x9a) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x9a) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c95500396.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c95500396.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.IsExistingMatchingCard(c95500396.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp) end
and Duel.IsExistingMatchingCard(c95500396.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end end
function c95500396.spop(e,tp,eg,ep,ev,re,r,rp) function c95500396.spop(e,tp,eg,ep,ev,re,r,rp)
......
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