From ec7e2c74ff315531f4121e8b349db3597a6ef9fd Mon Sep 17 00:00:00 2001 From: omicron Date: Mon, 25 Nov 2024 22:30:01 +0100 Subject: [PATCH] Update range check API to for TWW --- src/types/unitframe.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/types/unitframe.lua b/src/types/unitframe.lua index 6f10b8f..37d6b1f 100644 --- a/src/types/unitframe.lua +++ b/src/types/unitframe.lua @@ -201,9 +201,9 @@ function UnitFrame:IsInRange() -- Prefer to use configured spells if friendlySpell and UnitCanAssist("player", unit) then - return IsSpellInRange(friendlySpell, unit) == 1 + return C_Spell.IsSpellInRange(friendlySpell, unit) == true elseif enemySpell and UnitCanAttack("player", unit) then - return IsSpellInRange(enemySpell, unit) == 1 + return C_Spell.IsSpellInRange(enemySpell, unit) == true end -- Fall back to raid/party only range check