Skip to content

Commit

Permalink
fixed #37: fade option bug (partial revert of e7f8bc0)
Browse files Browse the repository at this point in the history
  • Loading branch information
nyyr committed Jul 23, 2018
1 parent 8d29769 commit bd886b6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Core.lua
Expand Up @@ -1035,8 +1035,10 @@ function ArcHUD:CombatStatus(event, arg1, arg2)
self.PlayerIsRegenOn = false
end
elseif(event == "PLAYER_LEAVE_COMBAT" or event == "PLAYER_REGEN_ENABLED") then
self.PlayerIsInCombat = false
if(event == "PLAYER_REGEN_ENABLED") then
if(event == "PLAYER_LEAVE_COMBAT" and self.PlayerIsRegenOn) then
self.PlayerIsInCombat = false
elseif(event == "PLAYER_REGEN_ENABLED") then
self.PlayerIsInCombat = false
self.PlayerIsRegenOn = true
end
elseif(event == "PET_ATTACK_START") then
Expand Down

0 comments on commit bd886b6

Please sign in to comment.