Commit 5eb6d8c7 authored by wind2009's avatar wind2009

Fix

parent b2fa3109
Pipeline #40971 passed with stages
in 3 minutes and 27 seconds
...@@ -73,7 +73,7 @@ end ...@@ -73,7 +73,7 @@ end
function s.chop(e,tp,eg,ep,ev,re,r,rp) function s.chop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local cs=c:GetSequence() local cs=c:GetSequence()
if not c:IsRelateToChain() or not cs:IsControler(tp) or cs>4 or cs==2 then return end if not c:IsRelateToChain() or not c:IsControler(tp) or cs>4 or cs==2 then return end
local g=Duel.GetMatchingGroup(s.chfilter,tp,LOCATION_MZONE,0,nil) local g=Duel.GetMatchingGroup(s.chfilter,tp,LOCATION_MZONE,0,nil)
if g:GetCount()==1 then if g:GetCount()==1 then
local tc=g:GetFirst() local tc=g:GetFirst()
......
...@@ -68,7 +68,7 @@ end ...@@ -68,7 +68,7 @@ end
function s.chop(e,tp,eg,ep,ev,re,r,rp) function s.chop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local cs=c:GetSequence() local cs=c:GetSequence()
if not c:IsRelateToChain() or not cs:IsControler(tp) or cs>4 or cs==2 then return end if not c:IsRelateToChain() or not c:IsControler(tp) or cs>4 or cs==2 then return end
local g=Duel.GetMatchingGroup(s.chfilter,tp,LOCATION_MZONE,0,nil) local g=Duel.GetMatchingGroup(s.chfilter,tp,LOCATION_MZONE,0,nil)
if g:GetCount()==1 then if g:GetCount()==1 then
local tc=g:GetFirst() local tc=g:GetFirst()
......
...@@ -71,7 +71,7 @@ end ...@@ -71,7 +71,7 @@ end
function s.chop(e,tp,eg,ep,ev,re,r,rp) function s.chop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local cs=c:GetSequence() local cs=c:GetSequence()
if not c:IsRelateToChain() or not cs:IsControler(tp) or cs>4 or cs==2 then return end if not c:IsRelateToChain() or not c:IsControler(tp) or cs>4 or cs==2 then return end
local g=Duel.GetMatchingGroup(s.chfilter,tp,LOCATION_MZONE,0,nil) local g=Duel.GetMatchingGroup(s.chfilter,tp,LOCATION_MZONE,0,nil)
if g:GetCount()==1 then if g:GetCount()==1 then
local tc=g:GetFirst() local tc=g:GetFirst()
......
...@@ -32,7 +32,7 @@ function s.indtg(e,c) ...@@ -32,7 +32,7 @@ function s.indtg(e,c)
return c:GetSequence()==2 return c:GetSequence()==2
end end
function s.cfilter(c,e,tp) function s.cfilter(c,e,tp)
return c:IsAbleToGraveAsCost() return c:IsAbleToGraveAsCost() and c:IsType(TYPE_MONSTER)
and Duel.GetMZoneCount(tp,c)>0 and Duel.GetMZoneCount(tp,c)>0
and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp,c) and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp,c)
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