Skip to content

Commit

Permalink
left-clicking autobuff does not override small buffs unnecessarily
Browse files Browse the repository at this point in the history
  • Loading branch information
gallantron committed Apr 11, 2022
1 parent fc7906c commit 83ef1a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PallyPower.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 83ef1a3

Please sign in to comment.