Unverified Commit 36785d2d authored by Val Voronov's avatar Val Voronov Committed by GitHub

phaseindicator: Fix logic (#446)

Respect De Morgan's laws :grin::gun:
parent d56f6357
...@@ -37,7 +37,7 @@ local function Update(self, event) ...@@ -37,7 +37,7 @@ local function Update(self, event)
element:PreUpdate() element:PreUpdate()
end end
local isInSamePhase = UnitInPhase(self.unit) or not UnitIsWarModePhased(self.unit) local isInSamePhase = UnitInPhase(self.unit) and not UnitIsWarModePhased(self.unit)
if(isInSamePhase) then if(isInSamePhase) then
element:Hide() element:Hide()
else else
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment