Commit f9cff2af authored by wind2009's avatar wind2009 Committed by GitHub

Fix システム・ダウン (#2827)

parent 9e1062fb
...@@ -15,16 +15,10 @@ function c18895832.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -15,16 +15,10 @@ function c18895832.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.PayLPCost(tp,1000) Duel.PayLPCost(tp,1000)
end end
function c18895832.filter(c) function c18895832.filter(c)
return c:IsFaceup() and c:IsRace(RACE_MACHINE) return c:IsFaceupEx() and c:IsRace(RACE_MACHINE) and c:IsAbleToRemove()
end
function c18895832.tfilter(c)
return not c:IsAbleToRemove()
end end
function c18895832.target(e,tp,eg,ep,ev,re,r,rp,chk) function c18895832.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then if chk==0 then return Duel.IsExistingMatchingCard(c18895832.filter,tp,0,LOCATION_MZONE+LOCATION_GRAVE,1,nil) end
local g=Duel.GetMatchingGroup(c18895832.filter,tp,0,LOCATION_MZONE+LOCATION_GRAVE,nil)
return g:GetCount()>0 and not g:IsExists(c18895832.tfilter,1,nil)
end
local g=Duel.GetMatchingGroup(c18895832.filter,tp,0,LOCATION_MZONE+LOCATION_GRAVE,nil) local g=Duel.GetMatchingGroup(c18895832.filter,tp,0,LOCATION_MZONE+LOCATION_GRAVE,nil)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,g:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,g:GetCount(),0,0)
end 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