Commit d189dec1 authored by wind2009's avatar wind2009

Fix テンプレート・スキッパー

parent 8c812e99
Pipeline #30207 passed with stages
in 1 minute and 44 seconds
...@@ -46,10 +46,11 @@ function s.spval(e,c) ...@@ -46,10 +46,11 @@ function s.spval(e,c)
return 0,zone return 0,zone
end end
function s.rmfilter(c,tc) function s.rmfilter(c,tc)
return c:IsType(RACE_CYBERSE) and not c:IsCode(tc:GetLinkCode()) and c:IsAbleToRemove() return c:IsRace(RACE_CYBERSE) and c:IsAbleToRemove() and not c:IsCode(tc:GetLinkCode())
end end
function s.rmtg(e,tp,eg,ep,ev,re,r,rp,chk) function s.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(s.rmfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil,e:GetHandler()) end if chk==0 then return Duel.IsExistingMatchingCard(s.rmfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil,e:GetHandler()) end
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,tp,LOCATION_HAND+LOCATION_GRAVE)
end end
function s.rmop(e,tp,eg,ep,ev,re,r,rp) function s.rmop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
...@@ -72,4 +73,4 @@ function s.rmop(e,tp,eg,ep,ev,re,r,rp) ...@@ -72,4 +73,4 @@ function s.rmop(e,tp,eg,ep,ev,re,r,rp)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
end end
end end
\ No newline at end of file
...@@ -86,4 +86,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -86,4 +86,4 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
g:RemoveCard(dc) g:RemoveCard(dc)
Duel.Overlay(dc,g) Duel.Overlay(dc,g)
end end
end end
\ No newline at end of file
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