-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
146 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
## Interface: 40400 | ||
## Title: NugComboBar | ||
## Notes: Combopoints counter | ||
## Author: d87 | ||
## SavedVariablesPerCharacter: NugComboBarDB_Character | ||
## SavedVariables: NugComboBarDB_Global | ||
## Version: @project-version@ | ||
|
||
## X-WoWI-ID: 6308 | ||
## X-Curse-Project-ID: 2538 | ||
## X-Wago-ID: 9rN4yy6D | ||
|
||
Libs\LibStub\LibStub.lua | ||
Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua | ||
Libs\AceDB-3.0\AceDB-3.0.xml | ||
NugComboBar.lua | ||
skin.lua | ||
config.lua | ||
config.cata.lua |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
local addonName, ns = ... | ||
|
||
local APILevel = ns.APILevel | ||
|
||
local GetSpecialization = APILevel <= 4 and function() return 1 end or _G.GetSpecialization | ||
local GetSpell = ns.GetSpell | ||
local FindAura = ns.FindAura | ||
local GetAuraStack = ns.GetAuraStack | ||
local GetAuraStackWTimer = ns.GetAuraStackWTimer | ||
local MakeGetChargeFunc = ns.MakeGetChargeFunc | ||
local MakeGetComboPower = ns.MakeGetComboPower | ||
local GENERAL_UPDATE = ns.GENERAL_UPDATE | ||
local GENERIC_FILTERED_UNIT_POWER_UPDATE = ns.GENERIC_FILTERED_UNIT_POWER_UPDATE | ||
|
||
|
||
local DRUID_BEAR_FORM = ns.DRUID_BEAR_FORM | ||
local DRUID_CAT_FORM = ns.DRUID_CAT_FORM | ||
|
||
|
||
if APILevel ~= 4 then return end | ||
-- CATACLYSM CONFIG | ||
|
||
|
||
--------------------- | ||
-- PALADIN | ||
--------------------- | ||
|
||
NugComboBar:RegisterConfig("HolyPower", { | ||
triggers = { GetSpecialization }, | ||
setup = function(self, spec) | ||
self.eventProxy:RegisterUnitEvent("UNIT_POWER_UPDATE", "player") | ||
self.eventProxy.UNIT_POWER_UPDATE = GENERIC_FILTERED_UNIT_POWER_UPDATE("HOLY_POWER") | ||
self:SetMaxPoints(3) | ||
self:SetDefaultValue(0) | ||
self.flags.soundFullEnabled = true | ||
self:SetSourceUnit("player") | ||
self:SetTargetUnit("player") | ||
self:SetPointGetter(MakeGetComboPower(Enum.PowerType.HolyPower)) | ||
end | ||
}, "PALADIN") | ||
|
||
NugComboBar:RegisterConfig("ShadowOrbs", { | ||
triggers = { GetSpecialization, GetSpell(95740) }, | ||
setup = function(self, spec) | ||
self.eventProxy:RegisterUnitEvent("UNIT_AURA", "player") | ||
self.eventProxy.UNIT_AURA = GENERAL_UPDATE | ||
self:SetMaxPoints(3) | ||
self:SetDefaultValue(0) | ||
self.flags.soundFullEnabled = true | ||
self:SetPointGetter(GetAuraStack(77487)) -- Shadow Orbs | ||
end | ||
}, "PREIST") | ||
|
||
|
||
NugComboBar:RegisterConfig("SoulShards", { | ||
triggers = { GetSpecialization }, | ||
setup = function(self, spec) | ||
self.eventProxy:RegisterUnitEvent("UNIT_POWER_UPDATE", "player") | ||
self.eventProxy.UNIT_POWER_UPDATE = GENERIC_FILTERED_UNIT_POWER_UPDATE("SOUL_SHARDS") | ||
self:SetMaxPoints(3) | ||
self:SetDefaultValue(3) | ||
self.flags.soundFullEnabled = true | ||
self:SetSourceUnit("player") | ||
self:SetTargetUnit("player") | ||
self:SetPointGetter(MakeGetComboPower(Enum.PowerType.SoulShards)) | ||
end | ||
}, "WARLOCK") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters