Skip to content

Commit

Permalink
left-clicking a class icon 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 b452f83 commit fc7906c
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 @@ -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)
Expand Down

0 comments on commit fc7906c

Please sign in to comment.