Commit 7be8e64d authored by GuGu's avatar GuGu

Update c52010.lua

parent 3c7675c7
Pipeline #42554 passed with stage
in 1 minute and 26 seconds
...@@ -46,7 +46,7 @@ function s.descon(e,tp,eg,ep,ev,re,r,rp) ...@@ -46,7 +46,7 @@ function s.descon(e,tp,eg,ep,ev,re,r,rp)
end end
function s.destg(e,tp,eg,ep,ev,re,r,rp,chk) function s.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_MZONE,1,nil) end
local g=Group.FromCards(e:GetHandler()) local g=Group.FromCards(e:GetHandler())
g:Merge(Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_MZONE,nil)) g:Merge(Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_MZONE,nil))
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0)
...@@ -54,8 +54,8 @@ end ...@@ -54,8 +54,8 @@ end
function s.desop(e,tp,eg,ep,ev,re,r,rp) function s.desop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local g=Group.FromCards(c) local g=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_MZONE,nil)
g:Merge(Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_MZONE,nil)) if c:IsRelateToEffect(e) then g:AddCard(c) end
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.Destroy(g,REASON_EFFECT) Duel.Destroy(g,REASON_EFFECT)
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