From 83ef1a3237412a98ff354394da24fe86c0ce75ef Mon Sep 17 00:00:00 2001 From: gallantron Date: Mon, 11 Apr 2022 22:17:58 +0200 Subject: [PATCH] left-clicking autobuff 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 425979c..9326675 100644 --- a/PallyPower.lua +++ b/PallyPower.lua @@ -3401,7 +3401,7 @@ function PallyPower:AutoBuff(button, mousebutton) local spellID, gspellID = self:GetSpellID(i, 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)