# HG changeset patch # User Flick # Date 1211996489 0 # Node ID 44d3716aba8d93b2c7cc3d03d57cbbbe51657e46 # Parent 5ea65ec7d162f49e86252d42ce4d1653526bf819 fixed init sequence on PLAYER_AURAS_CHANGED diff -r 5ea65ec7d162 -r 44d3716aba8d modules/ReAction_State/ReAction_State.lua --- a/modules/ReAction_State/ReAction_State.lua Wed May 28 17:26:27 2008 +0000 +++ b/modules/ReAction_State/ReAction_State.lua Wed May 28 17:41:29 2008 +0000 @@ -188,8 +188,16 @@ function module:PLAYER_AURAS_CHANGED() self:UnregisterEvent("PLAYER_AURAS_CHANGED") - -- for some classes the number of stances is 0 until this event fires - InitRules() + -- on login the number of stances is 0 until this event fires during the init sequence. + -- however if you reload just the UI the number of stances is correct immediately + -- and this event won't fire until you gain/lose buffs/debuffs, at which point you might + -- be in combat. + if not InCombatLockdown() then + InitRules() + for name, bar in ReAction:IterateBars() do + self:OnRefreshBar("OnRefreshBar",bar,name) + end + end end function module:OnRefreshBar(event, bar, name)