Commit 7e5176ea authored by GuGu's avatar GuGu

Update c20112.lua

parent d0b1f51f
Pipeline #32874 passed with stage
in 13 seconds
...@@ -63,6 +63,8 @@ function c20112.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -63,6 +63,8 @@ function c20112.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local flag=e:GetHandler():GetFlagEffect(20112) local flag=e:GetHandler():GetFlagEffect(20112)
if flag==3 then if flag==3 then
e:SetCategory(CATEGORY_DESTROY) e:SetCategory(CATEGORY_DESTROY)
e:SetLabel(3)
e:GetHandler():ResetFlagEffect(20112)
local sg=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_ONFIELD,nil) local sg=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_ONFIELD,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,sg,sg:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,sg,sg:GetCount(),0,0)
else else
...@@ -75,8 +77,9 @@ function c20112.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -75,8 +77,9 @@ function c20112.operation(e,tp,eg,ep,ev,re,r,rp)
local g=Group.CreateGroup() local g=Group.CreateGroup()
local g1=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS) local g1=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS)
g:Merge(g1) g:Merge(g1)
local flag=e:GetHandler():GetFlagEffect(20112) local flag=e:GetLabel()
if flag==3 then if flag==3 then
e:SetLabel(0)
local sg=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_ONFIELD,nil) local sg=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_ONFIELD,nil)
Duel.Destroy(sg,REASON_EFFECT) Duel.Destroy(sg,REASON_EFFECT)
e:GetHandler():ResetFlagEffect(20112) e:GetHandler():ResetFlagEffect(20112)
......
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