Skip to content

Commit c7c37e7

Browse files
committed
Merge branch 'thewarwithin' of https://github.com/Hekili/hekili into thewarwithin
2 parents b694390 + 9696c14 commit c7c37e7

File tree

3 files changed

+39
-2
lines changed

3 files changed

+39
-2
lines changed

TheWarWithin/RogueAssassination.lua

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ local Hekili = _G[ addon ]
88
local class, state = Hekili.Class, Hekili.State
99
local PTR = ns.PTR
1010
local GetUnitChargedPowerPoints = GetUnitChargedPowerPoints
11-
local format, wipe, max = string.format, table.wipe, math.max
11+
local strformat, wipe, max = string.format, table.wipe, math.max
1212
local UA_GetPlayerAuraBySpellID = C_UnitAuras.GetPlayerAuraBySpellID
1313

1414
local orderedPairs = ns.orderedPairs
@@ -2743,6 +2743,14 @@ spec:RegisterAbilities( {
27432743

27442744
toggle = "cooldowns",
27452745

2746+
readyTime = function ()
2747+
local reserved = settings.vanish_charges_reserved or 0
2748+
if reserved > 0 then
2749+
local cd = cooldown.vanish
2750+
return ( 1 + reserved - cd.charges_fractional ) * cd.recharge
2751+
end
2752+
end,
2753+
27462754
handler = function ()
27472755
applyBuff( "vanish" )
27482756
applyBuff( "stealth" )
@@ -2916,6 +2924,16 @@ spec:RegisterSetting( "mfd_points", 3, {
29162924
width = "full"
29172925
} )
29182926

2927+
spec:RegisterSetting( "vanish_charges_reserved", 0, {
2928+
name = strformat( "Reserve %s Charges", Hekili:GetSpellLinkWithTexture( 1856 ) ),
2929+
desc = strformat( "If set above zero, %s will not be recommended if it would leave you with fewer (fractional) charges.", Hekili:GetSpellLinkWithTexture( 1856 ) ),
2930+
type = "range",
2931+
min = 0,
2932+
max = 2,
2933+
step = 0.1,
2934+
width = "full"
2935+
} )
2936+
29192937
spec:RegisterSetting( "solo_vanish", true, {
29202938
name = "Allow |T132331:0|t Vanish when Solo",
29212939
desc = "If unchecked, the addon will not recommend |T132331:0|t Vanish when you are alone (to avoid resetting combat).",

TheWarWithin/RogueOutlaw.lua

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1500,6 +1500,16 @@ spec:RegisterSetting( "allow_shadowmeld", false, {
15001500
end,
15011501
} )
15021502

1503+
spec:RegisterSetting( "vanish_charges_reserved", 0, {
1504+
name = strformat( "Reserve %s Charges", Hekili:GetSpellLinkWithTexture( 1856 ) ),
1505+
desc = strformat( "If set above zero, %s will not be recommended if it would leave you with fewer (fractional) charges.", Hekili:GetSpellLinkWithTexture( 1856 ) ),
1506+
type = "range",
1507+
min = 0,
1508+
max = 2,
1509+
step = 0.1,
1510+
width = "full"
1511+
} )
1512+
15031513
spec:RegisterSetting( "solo_vanish", true, {
15041514
name = strformat( "%s: Solo", Hekili:GetSpellLinkWithTexture( 1856 ) ),
15051515
desc = strformat( "If unchecked, %s will not be recommended if you are playing alone, to avoid resetting combat.",

TheWarWithin/RogueSubtlety.lua

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1558,14 +1558,23 @@ spec:RegisterSetting( "rupture_duration", 12, {
15581558
width = "full",
15591559
} )
15601560

1561+
spec:RegisterSetting( "vanish_charges_reserved", 0, {
1562+
name = strformat( "Reserve %s Charges", Hekili:GetSpellLinkWithTexture( 1856 ) ),
1563+
desc = strformat( "If set above zero, %s will not be recommended if it would leave you with fewer (fractional) charges.", Hekili:GetSpellLinkWithTexture( 1856 ) ),
1564+
type = "range",
1565+
min = 0,
1566+
max = 2,
1567+
step = 0.1,
1568+
width = "full"
1569+
} )
1570+
15611571
spec:RegisterSetting( "solo_vanish", true, {
15621572
name = "Allow |T132331:0|t Vanish when Solo",
15631573
desc = "If unchecked, the addon will not recommend |T132331:0|t Vanish when you are alone (to avoid resetting combat).",
15641574
type = "toggle",
15651575
width = "full"
15661576
} )
15671577

1568-
15691578
spec:RegisterSetting( "allow_shadowmeld", nil, {
15701579
name = "Allow |T132089:0|t Shadowmeld",
15711580
desc = "If checked, |T132089:0|t Shadowmeld can be recommended for Night Elves when its conditions are met. Your stealth-based abilities can be used in Shadowmeld, even if your action bar does not change. " ..

0 commit comments

Comments
 (0)