mirror of
https://github.com/OldManAlpha/Puppeteer.git
synced 2025-11-28 23:48:35 +00:00
Small changes
This commit is contained in:
parent
9ca2a13291
commit
3740110519
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user