Commit d154c3dc authored by GuGu's avatar GuGu

Update c22024.lua

parent 6a6cba0d
Pipeline #19267 passed with stage
in 42 seconds
...@@ -85,21 +85,21 @@ function c22024.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -85,21 +85,21 @@ function c22024.operation(e,tp,eg,ep,ev,re,r,rp)
local seq=c:GetSequence() local seq=c:GetSequence()
local g=Group.CreateGroup() local g=Group.CreateGroup()
if (c:IsLocation(LOCATION_SZONE) or c:IsLocation(LOCATION_MZONE)) and seq<5 then if (c:IsLocation(LOCATION_SZONE) or c:IsLocation(LOCATION_MZONE)) and seq<5 then
g=c:GetColumnGroup() g=c:GetColumnGroup()
g:Remove(c22024.remfilter,nil,tp) g:Remove(c22024.remfilter,nil,tp)
end end
if c:IsLocation(LOCATION_MZONE) and seq>=5 then if c:IsLocation(LOCATION_MZONE) and seq>=5 then
g=c:GetColumnGroup() g=c:GetColumnGroup()
g:Remove(c22024.remfilter2,nil,tp) g:Remove(c22024.remfilter2,nil,tp)
end end
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.Destroy(g,REASON_EFFECT) Duel.Destroy(g,REASON_EFFECT)
local seqing=c:GetColumnGroup():Filter(c22024.seqfilter,nil,tp) local seqing=c:GetColumnGroup():Filter(c22024.seqfilter,nil,tp)
if seqing:GetCount()>0 then if seqing:GetCount()>0 then
Duel.Destroy(seqing,REASON_EFFECT) Duel.Destroy(seqing,REASON_EFFECT)
else else
Duel.Damage(1-tp,1200,REASON_EFFECT) Duel.Damage(1-tp,1200,REASON_EFFECT)
end end
end end
end end
function c22024.tdcon(e,tp,eg,ep,ev,re,r,rp) function c22024.tdcon(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