Commit d1910307 authored by nanahira's avatar nanahira

remove

parent 2fa164a3
Pipeline #36593 failed with stages
in 3 minutes and 11 seconds
...@@ -155,30 +155,6 @@ function s.splimit(e,c) ...@@ -155,30 +155,6 @@ function s.splimit(e,c)
return not (c:IsSetCard(0x2cd) or c:IsCode(101301008)) and not c:IsLocation(LOCATION_EXTRA) return not (c:IsSetCard(0x2cd) or c:IsCode(101301008)) and not c:IsLocation(LOCATION_EXTRA)
end end
-- should move to Auxiliary
function Auxiliary.DefineGetter(mt,field,f)
if not mt._getters then
mt._getters = {}
end
if not mt.__define_getter_registered__ then
mt.__define_getter_registered__ = true
local old_index = mt.__index
mt.__index = function(self, key)
if mt._getters and mt._getters[key]~=nil then
return mt._getters[key](self)
end
if type(old_index) == "function" then
return old_index(self, key)
elseif type(old_index) == "table" then
return old_index[key]
end
return nil
end
end
mt._getters[field]=f
end
function s.announce_filter_func(e,tp,ev) function s.announce_filter_func(e,tp,ev)
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)
local ncodes=s.CreateCodeList(exg,s.announced[tp],nil,nil) local ncodes=s.CreateCodeList(exg,s.announced[tp],nil,nil)
......
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