Skip to content

Commit

Permalink
Fixed flask texture.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wetxius committed Oct 14, 2014
1 parent 61c5012 commit ac68533
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ShestakUI/Modules/Buffs/RaidBuffsReminder.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ local guardianelixirbuffs = T.ReminderBuffs["GuardianElixir"]
local foodbuffs = T.ReminderBuffs["Food"]
local statbuffs = T.ReminderBuffs["Stat"]
local staminabuffs = T.ReminderBuffs["Stamina"]
local visible, flask, battleelixir, guardianelixir, food, stat, stamina, spell5, spell6
local visible, flask, battleelixir, guardianelixir, food, stat, stamina, spell5, spell6, once

-- We need to check if you have two different elixirs if your not flasked, before we say your not flasked
local function CheckElixir(unit)
Expand All @@ -21,6 +21,7 @@ local function CheckElixir(unit)
if UnitAura("player", name) then
FlaskFrame.t:SetTexture(icon)
battleelixir = true
once = true
break
else
battleelixir = false
Expand All @@ -36,6 +37,7 @@ local function CheckElixir(unit)
if not battleelixir then
FlaskFrame.t:SetTexture(icon)
end
once = true
break
else
guardianelixir = false
Expand Down Expand Up @@ -68,8 +70,9 @@ local function OnAuraChange(self, event, arg1, unit)
if flaskbuffs and flaskbuffs[1] then
for i, flaskbuffs in pairs(flaskbuffs) do
local name, _, icon = GetSpellInfo(flaskbuffs)
if event == "PLAYER_ENTERING_WORLD" then
if event == "PLAYER_ENTERING_WORLD" or once then
FlaskFrame.t:SetTexture(icon)
once = false
end
if UnitAura("player", name) then
FlaskFrame:SetAlpha(C.reminder.raid_buffs_alpha)
Expand Down

0 comments on commit ac68533

Please sign in to comment.