From d71d8aa523337cd16f27b7e1d86f9455f6a90fef Mon Sep 17 00:00:00 2001 From: Rainrider Date: Thu, 15 Aug 2024 11:54:41 +0200 Subject: [PATCH] fix: update for The War Within --- .luacheckrc | 2 +- oUF_Dispellable.lua | 2 +- oUF_Dispellable.toc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.luacheckrc b/.luacheckrc index d50ddc4..9be238f 100644 --- a/.luacheckrc +++ b/.luacheckrc @@ -11,7 +11,7 @@ read_globals = { -- API C_UnitAuras = { - fields = { 'GetAuraByAuraInstanceID', 'GetAuraDataBySlot' } + fields = { 'GetAuraByAuraInstanceID', 'GetAuraDataBySlot', 'GetAuraSlots' } }, 'CreateFrame', 'IsPlayerSpell', diff --git a/oUF_Dispellable.lua b/oUF_Dispellable.lua index 98bec6f..6844737 100644 --- a/oUF_Dispellable.lua +++ b/oUF_Dispellable.lua @@ -186,7 +186,7 @@ local function UpdateDebuffs(self, updateInfo) if not updateInfo or updateInfo.isFullUpdate then wipe(debuffs) - local slots = { UnitAuraSlots(unit, 'HARMFUL') } + local slots = { C_UnitAuras.GetAuraSlots(unit, 'HARMFUL') } for i = 2, #slots do local debuff = C_UnitAuras.GetAuraDataBySlot(unit, slots[i]) diff --git a/oUF_Dispellable.toc b/oUF_Dispellable.toc index d11bee2..0315e5b 100644 --- a/oUF_Dispellable.toc +++ b/oUF_Dispellable.toc @@ -1,4 +1,4 @@ -## Interface: 100005 +## Interface: 110002 ## Title: oUF_Dispellable ## Notes: oUF element for highlighting debuffs that are dispellable by the player ## Author: Rainrider