mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
Fixed DK Rune state not always matching actual state
This commit is contained in:
@ -1,5 +1,6 @@
|
|||||||
v1.11.2:
|
v1.11.2:
|
||||||
- Fixed Stagger bar to work in 8.0
|
- Fixed Stagger bar to work in 8.0
|
||||||
|
- Fixed DK Runes in graphical mode not always correctly showing runes on cooldown (curse ticket 238, thanks ithorazei!)
|
||||||
|
|
||||||
v1.11.1:
|
v1.11.1:
|
||||||
- Fixed error when playing as a Monk
|
- Fixed error when playing as a Monk
|
||||||
|
@ -317,9 +317,7 @@ function Runes.prototype:ResetRuneAvailability(event)
|
|||||||
self:UpdateRunePower(event, i, not event)
|
self:UpdateRunePower(event, i, not event)
|
||||||
end
|
end
|
||||||
|
|
||||||
if not event then
|
self:Redraw()
|
||||||
self:Redraw()
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- simply shows/hides the foreground rune when it becomes usable/unusable. this allows the background transparent rune to show only
|
-- simply shows/hides the foreground rune when it becomes usable/unusable. this allows the background transparent rune to show only
|
||||||
@ -338,9 +336,9 @@ function Runes.prototype:UpdateRunePower(event, rune, dontFlash)
|
|||||||
local lastState = self.lastRuneState[rune]
|
local lastState = self.lastRuneState[rune]
|
||||||
self.lastRuneState[rune] = usable
|
self.lastRuneState[rune] = usable
|
||||||
|
|
||||||
if lastState == usable then
|
-- if lastState == usable then
|
||||||
return
|
-- return
|
||||||
end
|
-- end
|
||||||
|
|
||||||
-- print("Runes.prototype:UpdateRunePower: rune="..rune.." usable="..(usable and "yes" or "no").." GetRuneType(rune)="..GetRuneType(rune));
|
-- print("Runes.prototype:UpdateRunePower: rune="..rune.." usable="..(usable and "yes" or "no").." GetRuneType(rune)="..GetRuneType(rune));
|
||||||
|
|
||||||
@ -354,7 +352,7 @@ function Runes.prototype:UpdateRunePower(event, rune, dontFlash)
|
|||||||
self.frame.graphical[rune]:SetAlpha(1)
|
self.frame.graphical[rune]:SetAlpha(1)
|
||||||
end
|
end
|
||||||
|
|
||||||
if not dontFlash then
|
if not dontFlash and lastState ~= usable then
|
||||||
local fadeInfo={
|
local fadeInfo={
|
||||||
mode = "IN",
|
mode = "IN",
|
||||||
timeToFade = 0.25,
|
timeToFade = 0.25,
|
||||||
@ -378,8 +376,6 @@ function Runes.prototype:UpdateRunePower(event, rune, dontFlash)
|
|||||||
self.frame.graphical[rune]:SetAlpha(0.2)
|
self.frame.graphical[rune]:SetAlpha(0.2)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
self:Redraw()
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function Runes.prototype:GetNumRunesAvailable()
|
function Runes.prototype:GetNumRunesAvailable()
|
||||||
|
Reference in New Issue
Block a user