mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-23 04:20:50 +00:00
fix on maul queue
This commit is contained in:
+10
-6
@@ -24,6 +24,7 @@ pfUI:RegisterModule("swingtimer", "vanilla:tbc", function ()
|
|||||||
mhFrozenAt = nil,
|
mhFrozenAt = nil,
|
||||||
hsQueued = false, cleaveQueued = false, maulQueued = false,
|
hsQueued = false, cleaveQueued = false, maulQueued = false,
|
||||||
isWarrior = false,
|
isWarrior = false,
|
||||||
|
isDruid = false,
|
||||||
cachedHSSlots = {}, cachedCleaveSlots = {},
|
cachedHSSlots = {}, cachedCleaveSlots = {},
|
||||||
useSpellQueueEvent = false,
|
useSpellQueueEvent = false,
|
||||||
playerGUID = nil,
|
playerGUID = nil,
|
||||||
@@ -515,16 +516,17 @@ pfUI:RegisterModule("swingtimer", "vanilla:tbc", function ()
|
|||||||
|
|
||||||
-- HS/Cleave color
|
-- HS/Cleave color
|
||||||
local curR, curG, curB = mhDefaultR, mhDefaultG, mhDefaultB
|
local curR, curG, curB = mhDefaultR, mhDefaultG, mhDefaultB
|
||||||
if sw_hsqueue and S.isWarrior then
|
if sw_hsqueue then
|
||||||
|
if S.maulQueued and S.isDruid then
|
||||||
|
curR, curG, curB = 0.2, 0.6, 1.0 -- blue-ish for druid
|
||||||
|
elseif S.isWarrior then
|
||||||
local hs, cl = IsHSOrCleaveQueued()
|
local hs, cl = IsHSOrCleaveQueued()
|
||||||
local maul = S.maulQueued
|
if cl then
|
||||||
if maul then
|
|
||||||
curR, curG, curB = 0.2, 0.6, 1.0 -- blue-ish for druid
|
|
||||||
elseif cl then
|
|
||||||
curR, curG, curB = 0.2, 0.9, 0.2
|
curR, curG, curB = 0.2, 0.9, 0.2
|
||||||
elseif hs then
|
elseif hs then
|
||||||
curR, curG, curB = 0.9, 0.9, 0.2
|
curR, curG, curB = 0.9, 0.9, 0.2
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Render MH
|
-- Render MH
|
||||||
@@ -839,6 +841,7 @@ pfUI:RegisterModule("swingtimer", "vanilla:tbc", function ()
|
|||||||
elseif event == "PLAYER_ENTERING_WORLD" then
|
elseif event == "PLAYER_ENTERING_WORLD" then
|
||||||
local _, class = UnitClass("player")
|
local _, class = UnitClass("player")
|
||||||
S.isWarrior = (class == "WARRIOR")
|
S.isWarrior = (class == "WARRIOR")
|
||||||
|
S.isDruid = (class == "DRUID")
|
||||||
S.playerGUID = GetUnitGUID("player")
|
S.playerGUID = GetUnitGUID("player")
|
||||||
UpdateWeaponSpeeds()
|
UpdateWeaponSpeeds()
|
||||||
RebuildQueueSlotCache()
|
RebuildQueueSlotCache()
|
||||||
@@ -866,6 +869,7 @@ pfUI:RegisterModule("swingtimer", "vanilla:tbc", function ()
|
|||||||
S.inCombat = false
|
S.inCombat = false
|
||||||
S.hsQueued = false
|
S.hsQueued = false
|
||||||
S.cleaveQueued = false
|
S.cleaveQueued = false
|
||||||
|
S.maulQueued = false
|
||||||
|
|
||||||
elseif event == "UNIT_DIED" then
|
elseif event == "UNIT_DIED" then
|
||||||
if arg1 and arg1 == S.playerGUID then
|
if arg1 and arg1 == S.playerGUID then
|
||||||
@@ -917,4 +921,4 @@ pfUI:RegisterModule("swingtimer", "vanilla:tbc", function ()
|
|||||||
}
|
}
|
||||||
|
|
||||||
UpdateWeaponSpeeds()
|
UpdateWeaponSpeeds()
|
||||||
end)
|
end)
|
||||||
|
|||||||
Reference in New Issue
Block a user