Skip to content

Commit ca1efd7

Browse files
added sleep check to patient alerts
1 parent bf0edb4 commit ca1efd7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

midnight.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ reno:SetPoint("BOTTOMRIGHT", UIParent, "BOTTOMRIGHT")
133133
local timerFrame = CreateFrame("Frame")
134134
local recentlyCalled = false
135135
local function checkPatientAura()
136+
if AngleurConfig.patientEnabled == false then return end
137+
if AngleurCharacter.sleeping then return end
136138
--Checks for raft aura
137139
if C_UnitAuras.GetPlayerAuraBySpellID(PATIENT_SPELLID1) or C_UnitAuras.GetPlayerAuraBySpellID(PATIENT_SPELLID2) then
138140
if not recentlyCalled then
@@ -162,7 +164,6 @@ patientFrame:RegisterUnitEvent("UNIT_AURA", "player")
162164
patientFrame:RegisterEvent("ITEM_DATA_LOAD_RESULT")
163165
patientFrame:RegisterEvent("PLAYER_LOGIN")
164166
patientFrame:SetScript("OnEvent", function (self, event, unit, ...)
165-
if AngleurConfig.patientEnabled == false then return end
166167
local arg4, arg5 = ...
167168
unit, arg4, arg5 = scrubsecretvalues(unit, arg4, arg5)
168169
if event == "UNIT_AURA" and unit == "player" then

0 commit comments

Comments
 (0)