small fixes

This commit is contained in:
NoM0Re
2025-06-05 13:57:23 +02:00
parent d08d10eaf6
commit 34b2e69600
3 changed files with 16 additions and 3 deletions
+14 -1
View File
@@ -2153,7 +2153,7 @@ function Private.Modernize(data, oldSnapshot)
["Alternate Power"] = true,
["Cast"] = true
}
for _, triggerData in ipairs(data.triggers) do
for triggerNum, triggerData in ipairs(data.triggers) do
local trigger = triggerData.trigger
if trigger and trigger.type == "unit" then
-- Migrate raidMarkIndex
@@ -2174,6 +2174,19 @@ function Private.Modernize(data, oldSnapshot)
end
-- Migrate old Combo Points triggers
if trigger.event == "Combo Points" then
-- Conditions
if data.conditions then
for conditionIndex, condition in ipairs(data.conditions) do
if condition.check then
if condition.check.trigger == triggerNum then
if condition.check.variable == "stacks" then
condition.check.variable = "power"
end
end
end
end
end
-- Trigger
local newTrigger = {
type = "unit",
use_unit = true,
+1 -1
View File
@@ -6114,7 +6114,7 @@ Private.event_prototypes = {
preamble = "local spellChecker = Private.ExecEnv.CreateSpellChecker()",
preambleGroup = "spell",
test = "spellChecker:CheckName(spellNames)",
conditionType = "number",
--conditionType = "number", -- Disabled because input would be string and would break imports to retail
noProgressSource = true
},
{
@@ -506,7 +506,7 @@ local function ConstructTextEditor(frame)
editor.editBox.timeMachinePos = 1
local TimeMachineMaximumRollback = 10
-- We do not have those events in the editbox, so we created buttons for undo/redo below...
-- These events arent supported in the editbox, so we add undo/redo buttons below instead...
--[[editor.editBox:HookScript(
"OnKeyDown",
function(self, key)