From fc7906cbf45c890584744f85b58ef4033798b3d6 Mon Sep 17 00:00:00 2001 From: gallantron Date: Mon, 11 Apr 2022 22:15:58 +0200 Subject: [PATCH] left-clicking a class icon does not override small buffs unnecessarily --- PallyPower.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PallyPower.lua b/PallyPower.lua index 9f831ff..425979c 100644 --- a/PallyPower.lua +++ b/PallyPower.lua @@ -2998,7 +2998,7 @@ function PallyPower:GetUnitAndSpellSmart(classid, mousebutton) local spellID, gspellID = self:GetSpellID(classid, unit.name) local spell = self.Spells[spellID] local gspell = self.GSpells[gspellID] - if (IsSpellInRange(gspell, unit.unitid) == 1) and (not UnitIsDeadOrGhost(unit.unitid)) then + if (not unit.specialbuff) and (IsSpellInRange(gspell, unit.unitid) == 1) and (not UnitIsDeadOrGhost(unit.unitid)) then local penalty = 0 local buffExpire, buffDuration, buffName = self:IsBuffActive(spell, gspell, unit.unitid) local nSpell, gSpell = self:CanBuffBlessing(spellID, gspellID, unit.unitid)