small fixes
This commit is contained in:
+14
-1
@@ -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,
|
||||
|
||||
@@ -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 aren’t supported in the editbox, so we add undo/redo buttons below instead...
|
||||
--[[editor.editBox:HookScript(
|
||||
"OnKeyDown",
|
||||
function(self, key)
|
||||
|
||||
Reference in New Issue
Block a user