fix evade event handling

This commit is contained in:
Jrc13245
2026-03-12 19:25:33 -04:00
parent 7d3b9ba1b8
commit 4b236e8446
5 changed files with 166 additions and 93 deletions
@@ -1415,6 +1415,24 @@ function MikSBT.UpdateProfiles()
profile.CreationVersion = 4.5;
end
if (profile.CreationVersion < 4.6) then
-- Add missing incoming evade/reflect event settings (needed for Nampower events).
local incomingMissEvents = {
"MSBT_EVENTTYPE_INCOMING_EVADE",
"MSBT_EVENTTYPE_INCOMING_SPELL_EVADE",
"MSBT_EVENTTYPE_INCOMING_PET_EVADE",
"MSBT_EVENTTYPE_INCOMING_PET_SPELL_EVADE",
"MSBT_EVENTTYPE_INCOMING_PET_SPELL_REFLECT",
};
for _, evtName in incomingMissEvents do
if not profile.EventSettings[evtName] and MikSBT.DEFAULT_CONFIG.EventSettings[evtName] then
profile.EventSettings[evtName] = MikSBT.CopyTable(MikSBT.DEFAULT_CONFIG.EventSettings[evtName]);
end
end
profile.CreationVersion = 4.6;
end
end
end