From 140596b9300f825f78db0fa9e29b651e2af85443 Mon Sep 17 00:00:00 2001 From: Parnic Date: Wed, 8 Nov 2023 09:33:17 -0600 Subject: [PATCH] Fix Stagger bar error for 10.2.0 Fixes wowace ticket 348 --- changelog.md | 4 ++++ modules/Stagger.lua | 6 ++++++ this_version.md | 4 ++++ 3 files changed, 14 insertions(+) diff --git a/changelog.md b/changelog.md index c0e0d1b..64ceb3a 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,9 @@ # Changelog +v1.14.29: + +- Fix Stagger bar error for 10.2.0 (wowace ticket #348) + v1.14.28: - Update TOC for Dragonflight to 10.2.0 diff --git a/modules/Stagger.lua b/modules/Stagger.lua index b8bf02a..439dbe3 100644 --- a/modules/Stagger.lua +++ b/modules/Stagger.lua @@ -17,6 +17,12 @@ local staggerIds = {LightID, ModerateID, HeavyID} local MinLevel = 10 +local STAGGER_YELLOW_TRANSITION, STAGGER_RED_TRANSITION = STAGGER_YELLOW_TRANSITION, STAGGER_RED_TRANSITION +if STAGGER_STATES then + STAGGER_YELLOW_TRANSITION = STAGGER_STATES.YELLOW.threshold + STAGGER_RED_TRANSITION = STAGGER_STATES.RED.threshold +end + StaggerBar.prototype.StaggerDuration = 0 StaggerBar.prototype.StaggerEndTime = 0 diff --git a/this_version.md b/this_version.md index c2ad2ac..dad9fe2 100644 --- a/this_version.md +++ b/this_version.md @@ -1,5 +1,9 @@ # Changelog +v1.14.29: + +- Fix Stagger bar error for 10.2.0 (wowace ticket #348) + v1.14.28: - Update TOC for Dragonflight to 10.2.0