Skip to content

Commit

Permalink
Fixed issue with mouse scroll
Browse files Browse the repository at this point in the history
Fixed an issue with mouse scroll not returning back to normal when all missing buffs etc. are applied.
  • Loading branch information
Softrix committed Jul 16, 2023
1 parent 7b5f85b commit dc60ab9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions SmartBuff.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
-- Cast the most important buffs on you, tanks or party/raid members/pets.
-------------------------------------------------------------------------------

SMARTBUFF_DATE = "250623";
SMARTBUFF_DATE = "160723";

SMARTBUFF_VERSION = "r48."..SMARTBUFF_DATE;
SMARTBUFF_VERSION = "r49."..SMARTBUFF_DATE;
SMARTBUFF_VERSIONNR = 30402;
SMARTBUFF_TITLE = "SmartBuff";
SMARTBUFF_SUBTITLE = "Supports you in casting buffs";
Expand Down Expand Up @@ -1764,6 +1764,8 @@ function SMARTBUFF_BuffUnit(unit, subgroup, mode, spell)
if (UnitIsPVP("player")) then isPvP = true end

SMARTBUFF_CheckUnitBuffTimers(unit);

isPrompting = false;

if (UnitExists(unit) and UnitIsFriend("player", unit) and not UnitIsDeadOrGhost(unit) and not UnitIsCorpse(unit) and (UnitInRange(unit) or unit == "player" or unit == "target"))
and UnitIsConnected(unit) and UnitIsVisible(unit) and not UnitOnTaxi(unit) and not cBlacklist[unit] and ((not UnitIsPVP(unit) and (not isPvP or O.BuffPvP)) or (UnitIsPVP(unit)
Expand Down Expand Up @@ -2337,12 +2339,10 @@ function SMARTBUFF_BuffUnit(unit, subgroup, mode, spell)
end
end
end -- group or self
else
-- revert camera zoom back to normal.
isPrompting = false
end
end -- for buff
end
isPrompting = false
return 3;
end
-- END SMARTBUFF_BuffUnit
Expand Down

0 comments on commit dc60ab9

Please sign in to comment.