Skip to content

Commit 19423df

Browse files
authored
update "Artmegia the Academy City of Divine Arts"
Moved `announce_filter` to the `s` table so that "Engraver of the Mark" could access it.
1 parent 891553e commit 19423df

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

pre-release/c101301054.lua

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,18 @@ function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
4949
local fcs=Duel.GetMatchingGroup(aux.FaceupFilter(Card.IsSetCard,SET_ARTMEGIA),tp,LOCATION_MZONE,0,nil):GetClass(Card.GetCode)
5050
local g=Duel.GetMatchingGroup(s.declfilter,tp,LOCATION_DECK,0,nil,fcs,s.declared_names[tp])
5151
if chk==0 then return #g>0 end
52-
local announce_filter={}
52+
s.announce_filter={}
5353
for _,code in ipairs(g:GetClass(Card.GetCode)) do
54-
if #announce_filter==0 then
55-
table.insert(announce_filter,code)
56-
table.insert(announce_filter,OPCODE_ISCODE)
54+
if #s.announce_filter==0 then
55+
table.insert(s.announce_filter,code)
56+
table.insert(s.announce_filter,OPCODE_ISCODE)
5757
else
58-
table.insert(announce_filter,code)
59-
table.insert(announce_filter,OPCODE_ISCODE)
60-
table.insert(announce_filter,OPCODE_OR)
58+
table.insert(s.announce_filter,code)
59+
table.insert(s.announce_filter,OPCODE_ISCODE)
60+
table.insert(s.announce_filter,OPCODE_OR)
6161
end
6262
end
63-
local ac=Duel.AnnounceCard(tp,table.unpack(announce_filter))
63+
local ac=Duel.AnnounceCard(tp,table.unpack(s.announce_filter))
6464
table.insert(s.declared_names[tp],ac)
6565
Duel.SetTargetParam(ac)
6666
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
@@ -90,4 +90,4 @@ function s.thop(e,tp,eg,ep,ev,re,r,rp)
9090
e1:SetReset(RESET_PHASE|PHASE_END)
9191
Duel.RegisterEffect(e1,tp)
9292
end
93-
end
93+
end

0 commit comments

Comments
 (0)