From a7d96602140bff22ce692e04cb5987b5cf8b622d Mon Sep 17 00:00:00 2001 From: MysticalOS Date: Sat, 16 Nov 2024 08:38:24 -0500 Subject: [PATCH] Use new core object for this --- DBM-Raids-WoTLK/ObsidianSanctum/Sartharion.lua | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/DBM-Raids-WoTLK/ObsidianSanctum/Sartharion.lua b/DBM-Raids-WoTLK/ObsidianSanctum/Sartharion.lua index 75fbfa4..8b481e3 100644 --- a/DBM-Raids-WoTLK/ObsidianSanctum/Sartharion.lua +++ b/DBM-Raids-WoTLK/ObsidianSanctum/Sartharion.lua @@ -42,26 +42,16 @@ local lastvoids = {} local lastfire = {} local tsort, tinsert, twipe = table.sort, table.insert, table.wipe -local function isunitdebuffed(spellName) - for uId in DBM:GetGroupMembers() do - local debuff = DBM:UnitDebuff(uId, spellName) - if debuff then - return true - end - end - return false -end - local function CheckDrakes(delay) - if isunitdebuffed(DBM:GetSpellName(61248)) then -- Power of Tenebron + if DBM:RaidUnitDebuff(DBM:GetSpellName(61248)) then -- Power of Tenebron timerTenebron:Start(30 - delay) warnTenebron:Schedule(25 - delay) end - if isunitdebuffed(DBM:GetSpellName(58105)) then -- Power of Shadron + if DBM:RaidUnitDebuff(DBM:GetSpellName(58105)) then -- Power of Shadron timerShadron:Start(75 - delay) warnShadron:Schedule(70 - delay) end - if isunitdebuffed(DBM:GetSpellName(61251)) then -- Power of Vesperon + if DBM:RaidUnitDebuff(DBM:GetSpellName(61251)) then -- Power of Vesperon timerVesperon:Start(120 - delay) warnVesperon:Schedule(115 - delay) end