Commit 518f47cd authored by mallu11's avatar mallu11 Committed by GitHub

fix 人造人間-サイコ・ロード (#1426)

parent 0b9c7ce8
...@@ -70,16 +70,17 @@ function c35803249.disop(e,tp,eg,ep,ev,re,r,rp) ...@@ -70,16 +70,17 @@ function c35803249.disop(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateEffect(ev) Duel.NegateEffect(ev)
end end
end end
function c35803249.spfilter(c) function c35803249.spfilter(c,tp)
return c:IsFaceup() and c:IsCode(77585513) return c:IsFaceup() and c:IsCode(77585513) and c:IsAbleToGraveAsCost() and Duel.GetMZoneCount(tp,c)>0
end end
function c35803249.spcon(e,c) function c35803249.spcon(e,c)
if c==nil then return true end if c==nil then return true end
return Duel.CheckReleaseGroup(c:GetControler(),c35803249.spfilter,1,nil) return Duel.IsExistingMatchingCard(c35803249.spfilter,c:GetControler(),LOCATION_MZONE,0,1,nil,c:GetControler())
end end
function c35803249.spop(e,tp,eg,ep,ev,re,r,rp,c) function c35803249.spop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectReleaseGroup(tp,c35803249.spfilter,1,1,nil) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
Duel.Release(g,REASON_COST) local g=Duel.SelectMatchingCard(tp,c35803249.spfilter,tp,LOCATION_MZONE,0,1,1,nil,tp)
Duel.SendtoGrave(g,REASON_COST)
end end
function c35803249.filter(c) function c35803249.filter(c)
return c:IsFaceup() and c:IsType(TYPE_TRAP) return c:IsFaceup() and c:IsType(TYPE_TRAP)
......
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