mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- fixed a few edge cases where custom cooldown bars would not display when the spell was ready and the bar was set to "when ready" mode. this could happen if the player ran out of mana then gained enough back to cast the spell or for ranged spells where the target moved in and out of range
This commit is contained in:
@ -408,14 +408,16 @@ function IceCustomCDBar.prototype:EnableUpdates(enable_update)
|
||||
-- There is a hole in the logic here for spells that can be cast on any friendly target. When
|
||||
-- the correct UI option is selected they will cast on self when no target is selected. Deal
|
||||
-- with that later if it turns out to be a problem.
|
||||
if (not enable and (self.moduleSettings.displayMode == "When ready") and (IsUsableSpell(self.moduleSettings.cooldownToTrack) == 1)) then
|
||||
if SpellHasRange(self.moduleSettings.cooldownToTrack) then
|
||||
if IsSpellInRange(self.moduleSettings.cooldownToTrack, "target") then
|
||||
if (not enable and (self.moduleSettings.displayMode == "When ready")--[[ and (IsUsableSpell(self.moduleSettings.cooldownToTrack) == 1)]]) then
|
||||
-- Parnic: there are too many edge cases for "when ready" cooldowns that cause the bar to not appear when it should
|
||||
-- so, i'm forcing updates to always run for any bar that's set to only show "when ready"
|
||||
-- if SpellHasRange(self.moduleSettings.cooldownToTrack) then
|
||||
-- if IsSpellInRange(self.moduleSettings.cooldownToTrack, "target") then
|
||||
-- enable_update = true
|
||||
-- end
|
||||
-- else
|
||||
enable_update = true
|
||||
end
|
||||
else
|
||||
enable_update = true
|
||||
end
|
||||
-- end
|
||||
end
|
||||
|
||||
if enable_update then
|
||||
|
Reference in New Issue
Block a user