From 6811738f8ffe76f1d6722ccc81ebb600aa6c73a7 Mon Sep 17 00:00:00 2001 From: Gene Nazarov Date: Thu, 14 Nov 2024 23:31:15 -0800 Subject: [PATCH] Fix source of magic logic --- SmartBuff.buffs.lua | 2 +- SmartBuff.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SmartBuff.buffs.lua b/SmartBuff.buffs.lua index bbcd7f6..1854943 100644 --- a/SmartBuff.buffs.lua +++ b/SmartBuff.buffs.lua @@ -1322,7 +1322,7 @@ function SMARTBUFF_InitSpellList() {SMARTBUFF_BRONZEBLESSING, 60, SMARTBUFF_CONST_SELF}, {SMARTBUFF_Timelessness, 30, SMARTBUFF_CONST_GROUP, {1}, "WARRIOR;DRUID;SHAMAN;HUNTER;ROGUE;MAGE;PRIEST;PALADIN;WARLOCK;DEATHKNIGHT;MONK;DEMONHUNTER;EVOKER"}, {SMARTBUFF_BlisteringScale, -1, SMARTBUFF_CONST_GROUP, {1}, "WARRIOR;DRUID;SHAMAN;HUNTER;ROGUE;MAGE;PRIEST;PALADIN;WARLOCK;DEATHKNIGHT;MONK;DEMONHUNTER;EVOKER"}, - {SMARTBUFF_SourceOfMagic, 60, SMARTBUFF_CONST_GROUP, {1}, "DRUID;SHAMAN;PRIEST;PALADIN;MONK;EVOKER"}, + {SMARTBUFF_SourceOfMagic, 60, SMARTBUFF_CONST_GROUP, {1}, "WARRIOR;HUNTER;ROGUE;MAGE;WARLOCK;DEATHKNIGHT;DEMONHUNTER;TANK;DAMAGER;HPET;WPET;DKPET"}, {SMARTBUFF_EbonMight, -1, SMARTBUFF_CONST_SELF}, {SMARTBUFF_BronzeAttunement, -1, SMARTBUFF_CONST_SELF}, {SMARTBUFF_BlackAttunement, -1, SMARTBUFF_CONST_SELF}, diff --git a/SmartBuff.lua b/SmartBuff.lua index 26378fb..b89b62f 100644 --- a/SmartBuff.lua +++ b/SmartBuff.lua @@ -349,7 +349,7 @@ local function InitBuffSettings(cBI, reset) cBuff.ManaLimit = 0; if (cBI.Type == SMARTBUFF_CONST_GROUP or cBI.Type == SMARTBUFF_CONST_ITEMGROUP) then for n in pairs(cClasses) do - if (cBI.Type == SMARTBUFF_CONST_GROUP and n <= 13 and not string.find(cBI.Params, cClasses[n])) then + if (cBI.Type == SMARTBUFF_CONST_GROUP and not string.find(cBI.Params, cClasses[n])) then cBuff[cClasses[n]] = true; else cBuff[cClasses[n]] = false;