This commit is contained in:
NoM0Re
2025-05-31 22:54:39 +02:00
committed by GitHub
parent 9def6a5ab8
commit bda851552d
58 changed files with 2518 additions and 1671 deletions
+7 -2
View File
@@ -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",