Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

display dmf rep buff reminder at max level #117

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions modules/DarkmoonExp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ local ae = LibStub("AceEvent-3.0")


local maxlevel = GetMaxPlayerLevel()
local itemname = "Darkmoon EXP Buff"
local itemname = UnitLevel("player") < maxlevel and "Darkmoon EXP Buff" or "Darkmoon Rep Buff"
local spellname, _, icon = GetSpellInfo(46668)
local hatspell = GetSpellInfo(136583)
local dataobj = ns:GenerateSelfBuffer(itemname, icon, spellname, hatspell)
Expand All @@ -17,13 +17,11 @@ end


function dataobj:Test()
if UnitLevel("player") == maxlevel then return false end
return DarkmoonToday() and self:TestWithoutResting()
end


function dataobj:Init()
if UnitLevel("player") < maxlevel then OpenCalendar() end
end


Expand Down