Commit 511c2484 authored by nanahira's avatar nanahira

fix

parent a94cc4b9
...@@ -53,6 +53,9 @@ end ...@@ -53,6 +53,9 @@ end
function c47530171.tgfilter(c) function c47530171.tgfilter(c)
return c:GetSequence()<5 return c:GetSequence()<5
end end
function c47530171.desfilter(c,g)
return g:IsContains(c) and c:GetSequence()<5
end
function c47530171.retop(e,tp,eg,ep,ev,re,r,rp) function c47530171.retop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
Duel.ReturnToField(e:GetLabelObject()) Duel.ReturnToField(e:GetLabelObject())
...@@ -70,7 +73,7 @@ function c47530171.retop(e,tp,eg,ep,ev,re,r,rp) ...@@ -70,7 +73,7 @@ function c47530171.retop(e,tp,eg,ep,ev,re,r,rp)
if opt==1 then if opt==1 then
local seq=4-c:GetSequence() local seq=4-c:GetSequence()
local cg=c:GetColumnGroup() local cg=c:GetColumnGroup()
local g=Duel.GetMatchingGroup(c47530045.desfilter,tp,0,LOCATION_MZONE,nil,cg) local g=Duel.GetMatchingGroup(c47530171.desfilter,tp,0,LOCATION_MZONE,nil,cg)
local tc=g:GetFirst() local tc=g:GetFirst()
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SendtoGrave(g,REASON_EFFECT) Duel.SendtoGrave(g,REASON_EFFECT)
...@@ -89,4 +92,4 @@ function c47530171.retop(e,tp,eg,ep,ev,re,r,rp) ...@@ -89,4 +92,4 @@ function c47530171.retop(e,tp,eg,ep,ev,re,r,rp)
Duel.CalculateDamage(tc,c) Duel.CalculateDamage(tc,c)
end end
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