5.19.10
This commit is contained in:
@@ -179,7 +179,7 @@ Private.ExecEnv.BossMods.DBM = {
|
||||
|
||||
EventCallback = function(self, event, ...)
|
||||
if event == "DBM_Announce" then
|
||||
local message, icon, _, spellId, _, count = ...
|
||||
local message, icon, _, spellId, _, _, count = ...
|
||||
Private.ScanEvents("DBM_Announce", spellId, message, icon)
|
||||
if self.isGeneric then
|
||||
count = count and tostring(count) or "0"
|
||||
@@ -1552,11 +1552,16 @@ Private.event_prototypes["Boss Mod Announce"] = {
|
||||
type = "string",
|
||||
preamble = "local counter = Private.ExecEnv.CreateTriggerCounter(%q)",
|
||||
test = "counter:SetCount(tonumber(count) or 0) == nil and counter:Match()",
|
||||
conditionPreamble = function(input)
|
||||
return Private.ExecEnv.CreateTriggerCounter(input)
|
||||
end,
|
||||
conditionTest = function(state, needle, op, preamble)
|
||||
return preamble:Check(state.count)
|
||||
preamble:SetCount(tonumber(state.count) or 0)
|
||||
return preamble:Match()
|
||||
end,
|
||||
store = true,
|
||||
conditionType = "string",
|
||||
operator_types = "none"
|
||||
},
|
||||
{
|
||||
name = "cloneId",
|
||||
|
||||
Reference in New Issue
Block a user