Skip to content

Commit

Permalink
Cooldowns: Track Azerite Essence and PvP Talent spells
Browse files Browse the repository at this point in the history
  • Loading branch information
nebularg committed Apr 28, 2020
1 parent db6d7a3 commit 30be732
Show file tree
Hide file tree
Showing 11 changed files with 38 additions and 2 deletions.
8 changes: 7 additions & 1 deletion Data/Cooldowns.lua
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ function module:CheckItems()
end
end

local generalWhitelist = {
[L["Racial"]] = true,
[L["Azerite Essence"]] = true,
[L["PvP Talent"]] = true,
}

function module:ResetSpells(e)
wipe(spells)
wipe(spellCooldowns)
Expand All @@ -85,7 +91,7 @@ function module:ResetSpells(e)
for slot = 1, numSlots do
local index = offset + slot
local spellName, subSpellName = GetSpellBookItemName(index, "spell")
if tab > 1 or subSpellName == "Racial" then -- damn Blizzard for not having a "Racial" global string
if tab > 1 or generalWhitelist[subSpellName] then
spells[spellName] = true
local start, duration = GetSpellCooldown(index, "spell")
if start and start > 0 and duration > db.threshold and not db.filters[spellName] then
Expand Down
3 changes: 3 additions & 0 deletions Locales/deDE.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ L["Aura stack gain"] = "Aura Stapel erhalten"
L["Aura type"] = "Aura-Art"
L["Auras"] = "Auren"
L["Avoids"] = "Vermeidungen"
L["Azerite Essence"] = "Azeritessenz"
L["Both"] = "Beide"
-- L["Break up amounts"] = "Break up amounts"
-- L["Break up number values with '%s' (26500 -> %s)"] = "Break up number values with '%s' (26500 -> %s)"
Expand Down Expand Up @@ -349,6 +350,8 @@ L["Power gain/loss"] = "Kraft erhalten/verloren"
L["Power loss"] = "Kraftverlust"
L["Power type"] = "Kraft-Art"
L["Primary conditions"] = "Primäre Bedingungen"
L["PvP Talent"] = "PvP-Talent"
L["Racial"] = "Volksfähigkeit"
L["Rainbow"] = "Regenbogen"
L["Reactive skills"] = "Reaktive Fähigkeiten"
L["Reason for the miss"] = "Grund des Fehlschlages"
Expand Down
3 changes: 3 additions & 0 deletions Locales/enUS.lua
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ L["Aura stack gain"] = true
L["Aura type"] = true
L["Auras"] = true
L["Avoids"] = true
L["Azerite Essence"] = true
L["Both"] = true
L["Break up amounts"] = true
L["Break up number values with '%s' (26500 -> %s)"] = true
Expand Down Expand Up @@ -353,6 +354,8 @@ L["Power gain/loss"] = true
L["Power loss"] = true
L["Power type"] = true
L["Primary conditions"] = true
L["PvP Talent"] = true
L["Racial"] = true
L["Rainbow"] = true
L["Reactive skills"] = true
L["Reason for the miss"] = true
Expand Down
3 changes: 3 additions & 0 deletions Locales/esES.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ if not L then return end
-- L["Aura type"] = "Aura type"
-- L["Auras"] = "Auras"
-- L["Avoids"] = "Avoids"
L["Azerite Essence"] = "Esencia de azerita"
-- L["Both"] = "Both"
-- L["Break up amounts"] = "Break up amounts"
-- L["Break up number values with '%s' (26500 -> %s)"] = "Break up number values with '%s' (26500 -> %s)"
Expand Down Expand Up @@ -349,6 +350,8 @@ if not L then return end
-- L["Power loss"] = "Power loss"
-- L["Power type"] = "Power type"
-- L["Primary conditions"] = "Primary conditions"
L["PvP Talent"] = "Talento JcJ"
L["Racial"] = "Racial"
-- L["Rainbow"] = "Rainbow"
-- L["Reactive skills"] = "Reactive skills"
-- L["Reason for the miss"] = "Reason for the miss"
Expand Down
3 changes: 3 additions & 0 deletions Locales/frFR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ L["Aura stack gain"] = "Gain d'uns superposition d'aura"
L["Aura type"] = "Type d'aura"
L["Auras"] = "Auras"
L["Avoids"] = "Évite"
L["Azerite Essence"] = "Essence d’azérite"
L["Both"] = "Les deux"
-- L["Break up amounts"] = "Break up amounts"
-- L["Break up number values with '%s' (26500 -> %s)"] = "Break up number values with '%s' (26500 -> %s)"
Expand Down Expand Up @@ -349,6 +350,8 @@ L["Power gain/loss"] = "Puissance gagnée/perdue"
L["Power loss"] = "Perte de puissance"
L["Power type"] = "Type de puissance"
L["Primary conditions"] = "Conditions primaires"
L["PvP Talent"] = "Talento JcJ"
L["Racial"] = "Raciale"
L["Rainbow"] = "Arc-en-ciel"
L["Reactive skills"] = "Compétences réactives"
L["Reason for the miss"] = "Raison du coup raté"
Expand Down
3 changes: 3 additions & 0 deletions Locales/itIT.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ if not L then return end
-- L["Aura type"] = "Aura type"
-- L["Auras"] = "Auras"
-- L["Avoids"] = "Avoids"
L["Azerite Essence"] = "Essenza d'Azerite"
-- L["Both"] = "Both"
-- L["Break up amounts"] = "Break up amounts"
-- L["Break up number values with '%s' (26500 -> %s)"] = "Break up number values with '%s' (26500 -> %s)"
Expand Down Expand Up @@ -349,6 +350,8 @@ if not L then return end
-- L["Power loss"] = "Power loss"
-- L["Power type"] = "Power type"
-- L["Primary conditions"] = "Primary conditions"
L["PvP Talent"] = "Talento PvP"
L["Racial"] = "Razziale"
-- L["Rainbow"] = "Rainbow"
-- L["Reactive skills"] = "Reactive skills"
-- L["Reason for the miss"] = "Reason for the miss"
Expand Down
3 changes: 3 additions & 0 deletions Locales/koKR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ L["Aura stack gain"] = "오라 중첩 획득"
L["Aura type"] = "오라 종류"
L["Auras"] = "지속효과"
L["Avoids"] = "회피"
L["Azerite Essence"] = "아제라이트 정수"
L["Both"] = "둘다"
L["Break up amounts"] = "구분 양"
L["Break up number values with '%s' (26500 -> %s)"] = "숫자 값을 '%s'|1으로;로; 구분함 (26500 -> %s)"
Expand Down Expand Up @@ -349,6 +350,8 @@ L["Power gain/loss"] = "자원 획득/손실"
L["Power loss"] = "자원 손실"
L["Power type"] = "자원 종류"
L["Primary conditions"] = "1차 조건"
L["PvP Talent"] = "플레이어 간 전투 특성"
L["Racial"] = "종족 특성"
L["Rainbow"] = "무지개"
L["Reactive skills"] = "기술 사용 가능 여부"
L["Reason for the miss"] = "빗맞음 이유"
Expand Down
3 changes: 3 additions & 0 deletions Locales/ptBR.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ if not L then return end
-- L["Aura type"] = "Aura type"
-- L["Auras"] = "Auras"
-- L["Avoids"] = "Avoids"
L["Azerite Essence"] = "Essência de Azerita"
-- L["Both"] = "Both"
-- L["Break up amounts"] = "Break up amounts"
-- L["Break up number values with '%s' (26500 -> %s)"] = "Break up number values with '%s' (26500 -> %s)"
Expand Down Expand Up @@ -349,6 +350,8 @@ if not L then return end
-- L["Power loss"] = "Power loss"
-- L["Power type"] = "Power type"
-- L["Primary conditions"] = "Primary conditions"
L["PvP Talent"] = "Talento de JxJ"
L["Racial"] = "Racial"
-- L["Rainbow"] = "Rainbow"
-- L["Reactive skills"] = "Reactive skills"
-- L["Reason for the miss"] = "Reason for the miss"
Expand Down
3 changes: 3 additions & 0 deletions Locales/ruRU.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ L["Aura stack gain"] = "Получен стек аур"
L["Aura type"] = "Тип аур"
L["Auras"] = "Ауры"
L["Avoids"] = "Avoids"
L["Azerite Essence"] = "Азеритовая сущность"
L["Both"] = "Оба"
-- L["Break up amounts"] = "Break up amounts"
-- L["Break up number values with '%s' (26500 -> %s)"] = "Break up number values with '%s' (26500 -> %s)"
Expand Down Expand Up @@ -349,6 +350,8 @@ L["Power gain/loss"] = "Энергия получена/потеряна"
L["Power loss"] = "Энергия потеряна"
L["Power type"] = "Тип энергии"
L["Primary conditions"] = "Основные условия"
L["PvP Talent"] = "PvP-талант"
L["Racial"] = "Расовая"
L["Rainbow"] = "Радугой"
L["Reactive skills"] = "Reactive skills"
L["Reason for the miss"] = "Причина ошибки"
Expand Down
3 changes: 3 additions & 0 deletions Locales/zhCN.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ L["Aura stack gain"] = "获取光环叠加"
L["Aura type"] = "光环类型"
L["Auras"] = "光环"
L["Avoids"] = "减免"
L["Azerite Essence"] = "艾泽里特精华"
L["Both"] = ""
L["Break up amounts"] = "分段值"
L["Break up number values with '%s' (26500 -> %s)"] = "分段数值为“%s”(26500 -> %s)"
Expand Down Expand Up @@ -349,6 +350,8 @@ L["Power gain/loss"] = "获得/失去能量"
L["Power loss"] = "失去能量"
L["Power type"] = "能量类型"
L["Primary conditions"] = "主条件"
L["PvP Talent"] = "PvP天赋"
L["Racial"] = "种族特长"
L["Rainbow"] = "彩虹型"
L["Reactive skills"] = "反应技能"
L["Reason for the miss"] = "未命中原因"
Expand Down
5 changes: 4 additions & 1 deletion Locales/zhTW.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ L["%s!"] = "%s!"
L["+Combat"] = "+戰鬥"
L["-Combat"] = "-戰鬥"
L["<Any text> or <Lua search expression>"] = "<任意文字>或<Lua 搜索表達式>"
L["<Buff name or spell id>"] = "<增益名稱或法術ID>"
L["<Buff name or spell id>"] = "<增益名稱或法術ID>"
L["<Item name>"] = "<物品名稱>"
L["<Name>"] = "<名稱>"
L["<Skill name>"] = "<技能名稱>"
Expand Down Expand Up @@ -69,6 +69,7 @@ L["Aura stack gain"] = "獲取光環疊加"
L["Aura type"] = "光環類型"
L["Auras"] = "光環"
L["Avoids"] = "削減"
L["Azerite Essence"] = "艾澤萊精華"
L["Both"] = ""
L["Break up amounts"] = "分割數字"
L["Break up number values with '%s' (26500 -> %s)"] = "用'%s'分割數字 (26500 -> %s)"
Expand Down Expand Up @@ -349,6 +350,8 @@ L["Power gain/loss"] = "獲得/失去能量"
L["Power loss"] = "失去能量"
L["Power type"] = "能量類型"
L["Primary conditions"] = "主條件"
L["PvP Talent"] = "PvP天賦"
L["Racial"] = "種族特長"
L["Rainbow"] = "彩虹型"
L["Reactive skills"] = "反應技能"
L["Reason for the miss"] = "未命中原因"
Expand Down

0 comments on commit 30be732

Please sign in to comment.