Commit 0dc87f98 authored by nanahira's avatar nanahira

fix

parent 1fc58554
...@@ -40,6 +40,9 @@ function s.initial_effect(c) ...@@ -40,6 +40,9 @@ function s.initial_effect(c)
end end
end end
-- workaround for Engraver
local ARTMEGIA_COUNT=4
function s.AddToAnnounced(tp,code) function s.AddToAnnounced(tp,code)
table.insert(s.announced[tp],code) table.insert(s.announced[tp],code)
s.announced_set[tp][code]=true s.announced_set[tp][code]=true
...@@ -125,7 +128,7 @@ function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -125,7 +128,7 @@ function s.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
local ac=Duel.AnnounceCard(tp,table.unpack(afilter)) local ac=Duel.AnnounceCard(tp,table.unpack(afilter))
s.AddToAnnounced(tp,ac) s.AddToAnnounced(tp,ac)
Duel.SetTargetParam(ac) Duel.SetTargetParam(ac)
if #codes>1 then if #s.announce_filter_func(e:GetHandler())<=9+4*(ARTMEGIA_COUNT-2) then
-- it should be at least two possible choices to make it changeable -- it should be at least two possible choices to make it changeable
Auxiliary.DefineGetterTemp(getmetatable(e:GetHandler()),"announce_filter",s.announce_filter_func) Auxiliary.DefineGetterTemp(getmetatable(e:GetHandler()),"announce_filter",s.announce_filter_func)
Duel.SetOperationInfo(0,CATEGORY_ANNOUNCE,nil,0,tp,0) Duel.SetOperationInfo(0,CATEGORY_ANNOUNCE,nil,0,tp,0)
...@@ -216,9 +219,6 @@ function Auxiliary.DefineGetterTemp(mt, field, f) ...@@ -216,9 +219,6 @@ function Auxiliary.DefineGetterTemp(mt, field, f)
end) end)
end end
-- workaround for Engraver
local ARTMEGIA_COUNT=4
function s.announce_filter_func(c) function s.announce_filter_func(c)
local tp=c:GetControler() local tp=c:GetControler()
local exg=Duel.GetMatchingGroup(aux.AND(Card.IsFaceup,Card.IsSetCard),tp,LOCATION_MZONE,0,nil,0x2cd) local exg=Duel.GetMatchingGroup(aux.AND(Card.IsFaceup,Card.IsSetCard),tp,LOCATION_MZONE,0,nil,0x2cd)
......
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