Small changes

This commit is contained in:
OldManAlpha 2025-02-07 12:55:12 -08:00
parent 9ca2a13291
commit 3740110519
3 changed files with 12 additions and 14 deletions

View File

@ -338,19 +338,17 @@ function HMUnitFrame:Flash()
end
end
do
function HMUnitFrame.Flash_OnUpdate()
local frame = this
local self = frame.unitFrame
local FLASH_TIME = frame.flashTime
local START_OPACITY = frame.startOpacity
self.flashTime = self.flashTime - arg1
frame:SetAlpha(START_OPACITY - (((FLASH_TIME - self.flashTime) / FLASH_TIME) * START_OPACITY))
function HMUnitFrame.Flash_OnUpdate()
local frame = this
local self = frame.unitFrame
local FLASH_TIME = frame.flashTime
local START_OPACITY = frame.startOpacity
self.flashTime = self.flashTime - arg1
frame:SetAlpha(START_OPACITY - (((FLASH_TIME - self.flashTime) / FLASH_TIME) * START_OPACITY))
if self.flashTime <= 0 then
frame:Hide()
frame:SetScript("OnUpdate", nil)
end
if self.flashTime <= 0 then
frame:Hide()
frame:SetScript("OnUpdate", nil)
end
end

View File

@ -759,7 +759,7 @@ local function initUnitFrames()
CreateUnitFrameGroup("Pets", "party", PetUnits, true, getSelectedProfile("Pets"))
CreateUnitFrameGroup("Raid", "raid", RaidUnits, false, getSelectedProfile("Raid"))
CreateUnitFrameGroup("Raid Pets", "raid", RaidPetUnits, true, getSelectedProfile("Raid Pets"))
CreateUnitFrameGroup("Target", "all", TargetUnits, false, getSelectedProfile("Target"))
CreateUnitFrameGroup("Target", "all", TargetUnits, false, getSelectedProfile("Target"), false)
if util.IsSuperWowPresent() then
CreateUnitFrameGroup("Focus", "all", HMUnitProxy.CustomUnitsMap["focus"], false, getSelectedProfile("Focus"), false)
end
@ -1012,7 +1012,6 @@ function EventAddonLoaded()
hostileSpells["None"]["LeftButton"] = "Target"
end
do
if HMOptions.Scripts.OnPostLoad then
local scriptString = HMOptions.Scripts.OnPostLoad

View File

@ -75,6 +75,7 @@ local trackedCastedAuras = {
["Unending Breath"] = 10 * 60,
["Demon Skin"] = 30 * 60,
["Demon Armor"] = 30 * 60,
["Fire Shield"] = 3 * 60,
-- Warlock: Offsensive
["Corruption"] = 18,
["Immolate"] = 15,