-- RogueAssassination.lua
-- June 2018
local addon , ns = ...
local Hekili = _G [ addon ]
local class = Hekili.Class
local state = Hekili.State
local PTR = ns.PTR
local FindUnitBuffByID , FindUnitDebuffByID = ns.FindUnitBuffByID , ns.FindUnitDebuffByID
local IterateTargets , ActorHasDebuff = ns.iterateTargets , ns.actorHasDebuff
-- Conduits
-- [-] lethal_poisons
-- [-] maim_mangle
-- [-] poisoned_katar
-- [x] wellplaced_steel
-- Covenant
-- [-] reverberation
-- [-] slaughter_scars
-- [-] sudden_fractures
-- [-] septic_shock
-- Endurance
-- [x] cloaked_in_shadows
-- [x] nimble_fingers -- may need to double check which reductions come first.
-- [-] recuperator
-- Finesse
-- [x] fade_to_nothing
-- [x] prepared_for_all
-- [x] quick_decisions
-- [x] rushed_setup
if UnitClassBase ( ' player ' ) == ' ROGUE ' then
local spec = Hekili : NewSpecialization ( 259 )
spec : RegisterResource ( Enum.PowerType . ComboPoints )
spec : RegisterResource ( Enum.PowerType . Energy , {
vendetta_regen = {
aura = " vendetta_regen " ,
last = function ( )
local app = state.buff . vendetta_regen.applied
local t = state.query_time
return app + floor ( t - app )
end ,
interval = 1 ,
value = 20 ,
} ,
garrote_vim = {
aura = " garrote " ,
debuff = true ,
last = function ( )
local app = state.debuff . garrote.last_tick
local exp = state.debuff . garrote.expires
local tick = state.debuff . garrote.tick_time
local t = state.query_time
return min ( exp , app + ( floor ( ( t - app ) / tick ) * tick ) )
end ,
stop = function ( )
return state.debuff . wound_poison_dot.down and state.debuff . deadly_poison_dot.down
end ,
interval = function ( )
return state.debuff . garrote.tick_time
end ,
value = 8
} ,
internal_bleeding_vim = {
aura = " internal_bleeding " ,
debuff = true ,
last = function ( )
local app = state.debuff . internal_bleeding.last_tick
local exp = state.debuff . internal_bleeding.expires
local tick = state.debuff . internal_bleeding.tick_time
local t = state.query_time
return min ( exp , app + ( floor ( ( t - app ) / tick ) * tick ) )
end ,
stop = function ( )
return state.debuff . wound_poison_dot.down and state.debuff . deadly_poison_dot.down
end ,
interval = function ( )
return state.debuff . internal_bleeding.tick_time
end ,
value = 8
} ,
rupture_vim = {
aura = " rupture " ,
debuff = true ,
last = function ( )
local app = state.debuff . rupture.last_tick
local exp = state.debuff . rupture.expires
local tick = state.debuff . rupture.tick_time
local t = state.query_time
return min ( exp , app + ( floor ( ( t - app ) / tick ) * tick ) )
end ,
stop = function ( )
return state.debuff . wound_poison_dot.down and state.debuff . deadly_poison_dot.down
end ,
interval = function ( )
return state.debuff . rupture.tick_time
end ,
value = 8
} ,
crimson_tempest_vim = {
aura = " crimson_tempest " ,
debuff = true ,
last = function ( )
local app = state.debuff . crimson_tempest.last_tick
local exp = state.debuff . crimson_tempest.expires
local tick = state.debuff . crimson_tempest.tick_time
local t = state.query_time
return min ( exp , app + ( floor ( ( t - app ) / tick ) * tick ) )
end ,
stop = function ( )
return state.debuff . wound_poison_dot.down and state.debuff . deadly_poison_dot.down
end ,
interval = function ( )
return state.debuff . crimson_tempest.tick_time
end ,
value = 8
} ,
nothing_personal = {
aura = " nothing_personal_regen " ,
last = function ( )
local app = state.buff . nothing_personal_regen.applied
local exp = state.buff . nothing_personal_regen.expires
local tick = state.buff . nothing_personal_regen.tick_time
local t = state.query_time
return min ( exp , app + ( floor ( ( t - app ) / tick ) * tick ) )
end ,
stop = function ( )
return state.buff . nothing_personal_regen.down
end ,
interval = function ( )
return state.buff . nothing_personal_regen.tick_time
end ,
value = 4
}
} )
-- Talents
spec : RegisterTalents ( {
master_poisoner = 22337 , -- 196864
elaborate_planning = 22338 , -- 193640
blindside = 22339 , -- 111240
nightstalker = 22331 , -- 14062
subterfuge = 22332 , -- 108208
master_assassin = 23022 , -- 255989
vigor = 19239 , -- 14983
deeper_stratagem = 19240 , -- 193531
marked_for_death = 19241 , -- 137619
leeching_poison = 22340 , -- 280716
cheat_death = 22122 , -- 31230
elusiveness = 22123 , -- 79008
internal_bleeding = 19245 , -- 154904
iron_wire = 23037 , -- 196861
prey_on_the_weak = 22115 , -- 131511
venom_rush = 22343 , -- 152152
alacrity = 23015 , -- 193539
exsanguinate = 22344 , -- 200806
poison_bomb = 21186 , -- 255544
hidden_blades = 22133 , -- 270061
crimson_tempest = 23174 , -- 121411
} )
-- PvP Talents
spec : RegisterPvpTalents ( {
creeping_venom = 141 , -- 354895
death_from_above = 3479 , -- 269513
dismantle = 5405 , -- 207777
flying_daggers = 144 , -- 198128
hemotoxin = 830 , -- 354124
intent_to_kill = 130 , -- 197007
maneuverability = 3448 , -- 197000
smoke_bomb = 3480 , -- 212182
system_shock = 147 , -- 198145
thick_as_thieves = 5408 , -- 221622
} )
spec : RegisterStateExpr ( " cp_max_spend " , function ( )
return combo_points.max
end )
-- Commented out in SimC, but my implementation should hold up vs. theirs.
-- APLs will use effective_combo_points.
spec : RegisterStateExpr ( " animacharged_cp " , function ( )
local n = buff.echoing_reprimand . stack
if n > 0 then return n end
return combo_points.max
end )
spec : RegisterStateExpr ( " effective_combo_points " , function ( )
if buff.echoing_reprimand . up and combo_points.current == buff.echoing_reprimand . stack then
return 7
end
return combo_points.current
end )
local stealth = {
rogue = { " stealth " , " vanish " , " shadow_dance " , " subterfuge " } ,
mantle = { " stealth " , " vanish " } ,
sepsis = { " sepsis_buff " } ,
all = { " stealth " , " vanish " , " shadow_dance " , " subterfuge " , " shadowmeld " , " sepsis_buff " }
}
spec : RegisterStateTable ( " stealthed " , setmetatable ( { } , {
__index = function ( t , k )
if k == " rogue " then
return buff.stealth . up or buff.vanish . up or buff.shadow_dance . up or buff.subterfuge . up
elseif k == " rogue_remains " then
return max ( buff.stealth . remains , buff.vanish . remains , buff.shadow_dance . remains , buff.subterfuge . remains )
elseif k == " mantle " then
return buff.stealth . up or buff.vanish . up
elseif k == " mantle_remains " then
return max ( buff.stealth . remains , buff.vanish . remains )
elseif k == " sepsis " then
return buff.sepsis_buff . up
elseif k == " sepsis_remains " then
return buff.sepsis_buff . remains
elseif k == " all " then
return buff.stealth . up or buff.vanish . up or buff.shadow_dance . up or buff.subterfuge . up or buff.shadowmeld . up or buff.sepsis_buff . up
elseif k == " remains " or k == " all_remains " then
return max ( buff.stealth . remains , buff.vanish . remains , buff.shadow_dance . remains , buff.subterfuge . remains , buff.shadowmeld . remains , buff.sepsis_buff . remains )
end
return false
end
} ) )
spec : RegisterStateExpr ( " master_assassin_remains " , function ( )
if not ( talent.master_assassin . enabled or legendary.mark_of_the_master_assassin . enabled ) then return 0 end
if stealthed.mantle then return cooldown.global_cooldown . remains + ( legendary.mark_of_the_master_assassin . enabled and 4 or 3 )
elseif buff.master_assassin_any . up then return buff.master_assassin_any . remains end
return 0
end )
local stealth_dropped = 0
local function isStealthed ( )
return ( FindUnitBuffByID ( " player " , 1784 ) or FindUnitBuffByID ( " player " , 115191 ) or FindUnitBuffByID ( " player " , 115192 ) or FindUnitBuffByID ( " player " , 11327 ) or GetTime ( ) - stealth_dropped < 0.2 )
end
local calculate_multiplier = setfenv ( function ( spellID )
local mult = 1
local stealth = isStealthed ( )
if stealth then
if talent.nightstalker . enabled then
mult = mult * 1.5
end
-- Garrote.
if talent.subterfuge . enabled and spellID == 703 then
mult = mult * 1.8
end
end
return mult
end , state )
-- index: unitGUID; value: isExsanguinated (t/f)
local crimson_tempests = { }
local ltCT = { }
local garrotes = { }
local ltG = { }
local ssG = { }
local internal_bleedings = { }
local ltIB = { }
local ruptures = { }
local ltR = { }
local snapshots = {
[ 121411 ] = true ,
[ 703 ] = true ,
[ 154953 ] = true ,
[ 1943 ] = true
}
local death_events = {
UNIT_DIED = true ,
UNIT_DESTROYED = true ,
UNIT_DISSIPATES = true ,
PARTY_KILL = true ,
SPELL_INSTAKILL = true ,
}
spec : RegisterEvent ( " COMBAT_LOG_EVENT_UNFILTERED " , function ( )
local _ , subtype , _ , sourceGUID , sourceName , _ , _ , destGUID , destName , destFlags , _ , spellID , spellName = CombatLogGetCurrentEventInfo ( )
if sourceGUID == state.GUID then
if subtype == ' SPELL_AURA_REMOVED ' or subtype == ' SPELL_AURA_BROKEN ' or subtype == ' SPELL_AURA_BROKEN_SPELL ' then
if spellID == 115191 or spellID == 1784 then
stealth_dropped = GetTime ( )
elseif spellID == 703 then
ssG [ destGUID ] = nil
end
elseif snapshots [ spellID ] and ( subtype == ' SPELL_AURA_APPLIED ' or subtype == ' SPELL_AURA_REFRESH ' or subtype == ' SPELL_AURA_APPLIED_DOSE ' ) then
ns.saveDebuffModifier ( spellID , calculate_multiplier ( spellID ) )
ns.trackDebuff ( spellID , destGUID , GetTime ( ) , true )
if spellID == 121411 then
-- Crimson Tempest
crimson_tempests [ destGUID ] = false
elseif spellID == 703 then
-- Garrote
garrotes [ destGUID ] = false
ssG [ destGUID ] = state.azerite . shrouded_suffocation.enabled and isStealthed ( )
elseif spellID == 408 then
-- Internal Bleeding (from Kidney Shot)
internal_bleedings [ destGUID ] = false
elseif spellID == 1943 then
-- Rupture
ruptures [ destGUID ] = false
end
elseif subtype == " SPELL_CAST_SUCCESS " and spellID == 200806 then
-- Exsanguinate
crimson_tempests [ destGUID ] = true
garrotes [ destGUID ] = true
internal_bleedings [ destGUID ] = true
ruptures [ destGUID ] = true
elseif subtype == " SPELL_PERIODIC_DAMAGE " then
if spellID == 121411 then
ltCT [ destGUID ] = GetTime ( )
elseif spellID == 703 then
ltG [ destGUID ] = GetTime ( )
elseif spellID == 408 then
ltIB [ destGUID ] = GetTime ( )
elseif spellID == 1943 then
ltR [ destGUID ] = GetTime ( )
end
end
end
if death_events [ subtype ] then
ssG [ destGUID ] = nil
end
end )
spec : RegisterHook ( " UNIT_ELIMINATED " , function ( guid )
ssG [ guid ] = nil
end )
local energySpent = 0
local ENERGY = Enum.PowerType . Energy
local lastEnergy = - 1
spec : RegisterUnitEvent ( " UNIT_POWER_FREQUENT " , " player " , nil , function ( event , unit , powerType )
if powerType == " ENERGY " then
local current = UnitPower ( " player " , ENERGY )
if current < lastEnergy then
energySpent = ( energySpent + lastEnergy - current ) % 30
end
lastEnergy = current
end
end )
spec : RegisterCycle ( function ( )
if active_enemies == 1 then return end
if this_action == " marked_for_death " then
if active_dot.marked_for_death >= cycle_enemies then return end -- As far as we can tell, MfD is on everything we care about, so we don't cycle.
if debuff.marked_for_death . up then return " cycle " end -- If current target already has MfD, cycle.
if target.time_to_die > 3 + Hekili : GetLowestTTD ( ) and active_dot.marked_for_death == 0 then return " cycle " end -- If our target isn't lowest TTD, and we don't have to worry that the lowest TTD target is already MfD'd, cycle.
end
end )
spec : RegisterStateExpr ( " energy_spent " , function ( )
return energySpent
end )
spec : RegisterHook ( " spend " , function ( amt , resource )
if legendary.duskwalkers_patch . enabled and cooldown.vendetta . remains > 0 and resource == " energy " and amt > 0 then
energy_spent = energy_spent + amt
local reduction = floor ( energy_spent / 30 )
energy_spent = energy_spent % 30
if reduction > 0 then
reduceCooldown ( " vendetta " , reduction )
end
end
if resource == " combo_points " and legendary.obedience . enabled and buff.flagellation_buff . up then
reduceCooldown ( " flagellation " , amt )
end
end )
spec : RegisterStateExpr ( ' persistent_multiplier ' , function ( )
local mult = 1
if not this_action then return mult end
local stealth = buff.stealth . up or buff.subterfuge . up
if stealth then
if talent.nightstalker . enabled then
mult = mult * 2
end
if talent.subterfuge . enabled and this_action == " garrote " then
mult = mult * 1.8
end
end
return mult
end )
spec : RegisterStateExpr ( ' exsanguinated ' , function ( )
if not this_action then return false end
local aura = this_action == " kidney_shot " and " internal_bleeding " or this_action
return debuff [ aura ] . exsanguinated == true
end )
-- Enemies with either Deadly Poison or Wound Poison applied.
spec : RegisterStateExpr ( ' poisoned_enemies ' , function ( )
return ns.countUnitsWithDebuffs ( " deadly_poison_dot " , " wound_poison_dot " , " crippling_poison_dot " )
end )
spec : RegisterStateExpr ( ' poison_remains ' , function ( )
return debuff.lethal_poison . remains
end )
-- Count of bleeds on targets.
spec : RegisterStateExpr ( ' bleeds ' , function ( )
local n = 0
if debuff.garrote . up then n = n + 1 end
if debuff.internal_bleeding . up then n = n + 1 end
if debuff.rupture . up then n = n + 1 end
if debuff.crimson_tempest . up then n = n + 1 end
return n
end )
-- Count of bleeds on all poisoned (Deadly/Wound) targets.
spec : RegisterStateExpr ( ' poisoned_bleeds ' , function ( )
return ns.conditionalDebuffCount ( " deadly_poison_dot " , " wound_poison_dot " , " garrote " , " internal_bleeding " , " rupture " )
end )
spec : RegisterStateExpr ( " ss_buffed " , function ( )
return debuff.garrote . ss_buffed or false
end )
spec : RegisterStateExpr ( " non_ss_buffed_targets " , function ( )
local count = ( debuff.garrote . down or not debuff.garrote . exsanguinated ) and 1 or 0
for guid , counted in ns.iterateTargets ( ) do
if guid ~= target.unit and counted and ( not ns.actorHasDebuff ( guid , 703 ) or not ssG [ guid ] ) then
count = count + 1
end
end
return count
end )
spec : RegisterStateExpr ( " ss_buffed_targets_above_pandemic " , function ( )
if not debuff.garrote . refreshable and debuff.garrote . ss_buffed then
return 1
end
return 0 -- we aren't really tracking this right now...
end )
spec : RegisterStateExpr ( " pmultiplier " , function ( )
if not this_action then return 0 end
local a = class.abilities [ this_action ]
if not a then return 0 end
local aura = a.aura or this_action
if not aura then return 0 end
if debuff [ aura ] and debuff [ aura ] . up then
return debuff [ aura ] . pmultiplier or 1
end
return 0
end )
spec : RegisterStateExpr ( " priority_rotation " , function ( )
return settings.priority_rotation
end )
local ExpireSepsis = setfenv ( function ( )
applyBuff ( " sepsis_buff " )
end , state )
spec : RegisterHook ( " reset_precast " , function ( )
debuff.crimson_tempest . pmultiplier = nil
debuff.garrote . pmultiplier = nil
debuff.internal_bleeding . pmultiplier = nil
debuff.rupture . pmultiplier = nil
debuff.crimson_tempest . exsanguinated = nil -- debuff.crimson_tempest.up and crimson_tempests[ target.unit ]
debuff.garrote . exsanguinated = nil -- debuff.garrote.up and garrotes[ target.unit ]
debuff.internal_bleeding . exsanguinated = nil -- debuff.internal_bleeding.up and internal_bleedings[ target.unit ]
debuff.rupture . exsanguinated = nil -- debuff.rupture.up and ruptures[ target.unit ]
debuff.garrote . ss_buffed = nil
if debuff.sepsis . up then
state : QueueAuraExpiration ( " sepsis " , ExpireSepsis , debuff.sepsis . expires )
end
end )
-- We need to break stealth when we start combat from an ability.
spec : RegisterHook ( " runHandler " , function ( ability )
local a = class.abilities [ ability ]
if stealthed.mantle and ( not a or a.startsCombat ) then
if talent.master_assassin . enabled then
applyBuff ( " master_assassin " )
end
if talent.subterfuge . enabled then
applyBuff ( " subterfuge " )
end
if legendary.mark_of_the_master_assassin . enabled and stealthed.mantle then
applyBuff ( " master_assassins_mark " , 4 )
end
if buff.stealth . up then
setCooldown ( " stealth " , 2 )
end
removeBuff ( " stealth " )
removeBuff ( " shadowmeld " )
removeBuff ( " vanish " )
end
end )
-- Auras
spec : RegisterAuras ( {
blind = {
id = 2094 ,
duration = 60 ,
max_stack = 1 ,
} ,
blindside = {
id = 121153 ,
duration = 10 ,
max_stack = 1 ,
} ,
cheap_shot = {
id = 1833 ,
duration = 4 ,
max_stack = 1 ,
} ,
cloak_of_shadows = {
id = 31224 ,
duration = 5 ,
max_stack = 1 ,
} ,
crimson_tempest = {
id = 121411 ,
duration = function ( ) return talent.deeper_stratagem . enabled and 14 or 12 end ,
max_stack = 1 ,
meta = {
exsanguinated = function ( t ) return t.up and crimson_tempests [ target.unit ] end ,
last_tick = function ( t ) return ltCT [ target.unit ] or t.applied end ,
tick_time = function ( t ) return t.exsanguinated and haste or ( 2 * haste ) end ,
} ,
} ,
crimson_vial = {
id = 185311 ,
duration = 4 ,
max_stack = 1 ,
} ,
crippling_poison = {
id = 3408 ,
duration = 3600 ,
max_stack = 1 ,
} ,
crippling_poison_dot = {
id = 3409 ,
duration = 12 ,
max_stack = 1 ,
} ,
deadly_poison = {
id = 2823 ,
duration = 3600 ,
max_stack = 1 ,
} ,
deadly_poison_dot = {
id = 2818 ,
duration = function ( ) return 12 * haste end ,
max_stack = 1 ,
} ,
elaborate_planning = {
id = 193641 ,
duration = 4 ,
max_stack = 1 ,
} ,
envenom = {
id = 32645 ,
duration = function ( ) return talent.deeper_stratagem . enabled and 7 or 6 end ,
type = " Poison " ,
max_stack = 1 ,
} ,
evasion = {
id = 5277 ,
duration = 10 ,
max_stack = 1 ,
} ,
feint = {
id = 1966 ,
duration = 6 ,
max_stack = 1 ,
} ,
fleet_footed = {
id = 31209 ,
} ,
garrote = {
id = 703 ,
duration = 18 ,
max_stack = 1 ,
meta = {
exsanguinated = function ( t ) return t.up and garrotes [ target.unit ] end ,
last_tick = function ( t ) return ltG [ target.unit ] or t.applied end ,
ss_buffed = function ( t ) return t.up and ssG [ target.unit ] end ,
tick_time = function ( t )
--if not talent.exsanguinate.enabled then return 2 * haste end
return t.exsanguinated and haste or ( 2 * haste ) end ,
} ,
} ,
garrote_silence = {
id = 1330 ,
duration = function ( ) return talent.iron_wire . enabled and 6 or 3 end ,
max_stack = 1 ,
} ,
hidden_blades = {
id = 270070 ,
duration = 3600 ,
max_stack = 20 ,
} ,
internal_bleeding = {
id = 154953 ,
duration = 6 ,
max_stack = 1 ,
meta = {
exsanguinated = function ( t ) return t.up and internal_bleedings [ target.unit ] end ,
last_tick = function ( t ) return ltIB [ target.unit ] or t.applied end ,
tick_time = function ( t )
--if not talent.exsanguinate.enabled then return haste end
return t.exsanguinated and ( 0.5 * haste ) or haste end ,
} ,
} ,
iron_wire = {
id = 256148 ,
duration = 8 ,
max_stack = 1 ,
} ,
kidney_shot = {
id = 408 ,
duration = function ( ) return talent.deeper_stratagem . enabled and 7 or 6 end ,
max_stack = 1 ,
} ,
marked_for_death = {
id = 137619 ,
duration = 60 ,
max_stack = 1 ,
} ,
master_assassin = {
id = 256735 ,
duration = 3 ,
max_stack = 1 ,
} ,
prey_on_the_weak = {
id = 255909 ,
duration = 6 ,
max_stack = 1 ,
} ,
rupture = {
id = 1943 ,
duration = function ( ) return talent.deeper_stratagem . enabled and 28 or 24 end ,
tick_time = function ( ) return debuff.rupture . exsanguinated and haste or ( 2 * haste ) end ,
max_stack = 1 ,
meta = {
exsanguinated = function ( t ) return t.up and ruptures [ target.unit ] end ,
last_tick = function ( t ) return ltR [ target.unit ] or t.applied end ,
--[[ tick_time = function ( t )
--if not talent.exsanguinate.enabled then return 2 * haste end
return t.exsanguinated and haste or ( 2 * haste ) end , ] ]
} ,
} ,
shadowstep = {
id = 36554 ,
duration = 2 ,
max_stack = 1 ,
} ,
shroud_of_concealment = {
id = 114018 ,
duration = 15 ,
max_stack = 1 ,
} ,
slice_and_dice = {
id = 315496 ,
duration = function ( ) return talent.deeper_stratagem . enabled and 42 or 36 end ,
max_stack = 1
} ,
sprint = {
id = 2983 ,
duration = 8 ,
max_stack = 1 ,
} ,
stealth = {
id = function ( ) return talent.subterfuge . enabled and 115191 or 1784 end ,
duration = 3600 ,
max_stack = 1 ,
copy = { 115191 , 1784 }
} ,
subterfuge = {
id = 115192 ,
duration = 3 ,
max_stack = 1 ,
} ,
tricks_of_the_trade = {
id = 57934 ,
duration = 30 ,
max_stack = 1 ,
} ,
vanish = {
id = 11327 ,
duration = 3 ,
max_stack = 1 ,
} ,
vendetta = {
id = 79140 ,
duration = 20 ,
max_stack = 1 ,
} ,
vendetta_regen = {
name = " Vendetta Regen " ,
duration = 3 ,
max_stack = 1 ,
generate = function ( )
local cast = action.vendetta . lastCast or 0
local up = cast + 3 < query_time
local vr = buff.vendetta_regen
if up then
vr.count = 1
vr.expires = cast + 3
vr.applied = cast
vr.caster = " player "
return
end
vr.count = 0
vr.expires = 0
vr.applied = 0
vr.caster = " nobody "
end ,
} ,
venomous_wounds = {
id = 79134 ,
} ,
wound_poison = {
id = 8679 ,
duration = 3600 ,
max_stack = 1 ,
} ,
wound_poison_dot = {
id = 8680 ,
duration = 12 ,
max_stack = 1 ,
no_ticks = true ,
} ,
lethal_poison = {
alias = { " deadly_poison " , " wound_poison " , " instant_poison " } ,
aliasMode = " first " ,
aliasType = " buff " ,
duration = 3600
} ,
nonlethal_poison = {
alias = { " crippling_poison " , " numbing_poison " } ,
aliasMode = " first " ,
aliasType = " buff " ,
duration = 3600
} ,
-- Azerite Powers
nothing_personal = {
id = 286581 ,
duration = 20 ,
tick_time = 2 ,
max_stack = 1 ,
} ,
nothing_personal_regen = {
id = 289467 ,
duration = 20 ,
tick_time = 2 ,
max_stack = 1 ,
} ,
scent_of_blood = {
id = 277731 ,
duration = 24 ,
} ,
sharpened_blades = {
id = 272916 ,
duration = 20 ,
max_stack = 30
} ,
-- PvP Talents
creeping_venom = {
id = 198097 ,
duration = 4 ,
max_stack = 18 ,
} ,
system_shock = {
id = 198222 ,
duration = 2 ,
} ,
-- Legendaries
bloodfang = {
id = 23581 ,
duration = 6 ,
max_stack = 1
} ,
master_assassins_mark = {
id = 340094 ,
duration = 4 ,
max_stack = 1
} ,
master_assassin_any = {
alias = { " master_assassin " , " master_assassins_mark " } ,
aliasMode = " longest " ,
aliasType = " buff " ,
duration = function ( ) return legendary.mark_of_the_master_assassin . enabled and 4 or 3 end ,
}
} )
-- Abilities
spec : RegisterAbilities ( {
ambush = {
id = 8676 ,
cast = 0 ,
cooldown = 0 ,
gcd = " spell " ,
spend = function ( ) return buff.blindside . up and 0 or 50 end ,
spendType = " energy " ,
startsCombat = true ,
texture = 132282 ,
usable = function ( ) return stealthed.all or buff.blindside . up or buff.sepsis_buff . up , " requires stealth or blindside or sepsis proc " end ,
handler = function ( )
gain ( 2 , " combo_points " )
if buff.sepsis_buff . up then removeBuff ( " sepsis_buff " )
else
removeBuff ( " blindside " )
end
end ,
} ,
blind = {
id = 2094 ,
cast = 0 ,
cooldown = 120 ,
gcd = " spell " ,
startsCombat = true ,
texture = 136175 ,
handler = function ( )
applyDebuff ( " target " , " blind " )
end ,
} ,
cheap_shot = {
id = 1833 ,
cast = 0 ,
cooldown = 0 ,
gcd = " spell " ,
spend = function ( ) return 40 * ( 1 + conduit.rushed_setup . mod * 0.01 ) end ,
spendType = " energy " ,
startsCombat = true ,
texture = 132092 ,
cycle = function ( )
if talent.prey_on_the_weak . enabled then return " prey_on_the_weak " end
end ,
usable = function ( )
if boss then return false , " cheap_shot assumed unusable in boss fights " end
return stealthed.all , " not stealthed "
end ,
nodebuff = " cheap_shot " ,
handler = function ( )
applyDebuff ( " target " , " cheap_shot " )
gain ( 1 , " combo_points " )
if buff.sepsis_buff . up then removeBuff ( " sepsis_buff " ) end
if talent.prey_on_the_weak . enabled then applyDebuff ( " target " , " prey_on_the_weak " ) end
end ,
} ,
cloak_of_shadows = {
id = 31224 ,
cast = 0 ,
cooldown = 120 ,
gcd = " spell " ,
toggle = " defensives " ,
startsCombat = false ,
texture = 136177 ,
handler = function ( )
applyBuff ( " cloak_of_shadows " )
end ,
} ,
crimson_tempest = {
id = 121411 ,
cast = 0 ,
cooldown = 0 ,
gcd = " spell " ,
spend = 35 ,
spendType = " energy " ,
startsCombat = true ,
texture = 464079 ,
talent = " crimson_tempest " ,
aura = " crimson_tempest " ,
cycle = " crimson_tempest " ,
usable = function ( ) return combo_points.current > 0 end ,
handler = function ( )
applyDebuff ( " target " , " crimson_tempest " , 2 + ( combo_points.current * 2 ) )
debuff.crimson_tempest . pmultiplier = persistent_multiplier
debuff.crimson_tempest . exsanguinated = false
if combo_points.current == animacharged_cp then
removeBuff ( " echoing_reprimand_ " .. combo_points.current )
end
spend ( combo_points.current , " combo_points " )
if talent.elaborate_planning . enabled then applyBuff ( " elaborate_planning " ) end
end ,
} ,
crimson_vial = {
id = 185311 ,
cast = 0 ,
cooldown = 30 ,
gcd = " spell " ,
spend = function ( ) return 20 - conduit.nimble_fingers . mod end ,
spendType = " energy " ,
startsCombat = false ,
texture = 1373904 ,
toggle = " defensives " ,
handler = function ( )
applyBuff ( " crimson_vial " )
end ,
} ,
crippling_poison = {
id = 3408 ,
cast = 1.5 ,
cooldown = 0 ,
gcd = " spell " ,
startsCombat = false ,
essential = true ,
texture = 132274 ,
readyTime = function ( ) return buff.nonlethal_poison . remains - 120 end ,
handler = function ( )
applyBuff ( " crippling_poison " )
end ,
} ,
deadly_poison = {
id = 2823 ,
cast = 0 ,
cooldown = 0 ,
gcd = " spell " ,
startsCombat = false ,
essential = true ,
texture = 132290 ,
readyTime = function ( ) return buff.lethal_poison . remains - 120 end ,
handler = function ( )
applyBuff ( " deadly_poison " )
end ,
} ,
distract = {
id = 1725 ,
cast = 0 ,
cooldown = 30 ,
gcd = " spell " ,
spend = function ( ) return 30 * ( 1 + conduit.rushed_setup . mod * 0.01 ) end ,
spendType = " energy " ,
startsCombat = false ,
texture = 132289 ,
handler = function ( )
end ,
} ,
envenom = {
id = 32645 ,
cast = 0 ,
cooldown = 0 ,
gcd = " spell " ,
spend = 35 ,
spendType = " energy " ,
startsCombat = true ,
texture = 132287 ,
usable = function ( ) return combo_points.current > 0 , " requires combo_points " end ,
handler = function ( )
if pvptalent.system_shock . enabled then
if combo_points.current >= 5 and debuff.garrote . up and debuff.rupture . up and ( debuff.deadly_poison_dot . up or debuff.wound_poison_dot . up ) then
applyDebuff ( " target " , " system_shock " , 2 )
end
end
if pvptalent.creeping_venom . enabled then
applyDebuff ( " target " , " creeping_venom " )
end
if level > 55 and buff.slice_and_dice . up then
buff.slice_and_dice . expires = buff.slice_and_dice . expires + combo_points.current * 3
end
applyBuff ( " envenom " , 1 + combo_points.current )
if combo_points.current == animacharged_cp then
removeBuff ( " echoing_reprimand_ " .. combo_points.current )
end
spend ( combo_points.current , " combo_points " )
if talent.elaborate_planning . enabled then applyBuff ( " elaborate_planning " ) end
end ,
} ,
evasion = {
id = 5277 ,
cast = 0 ,
cooldown = 120 ,
gcd = " spell " ,
startsCombat = false ,
texture = 136205 ,
handler = function ( )
applyBuff ( " evasion " )
end ,
} ,
exsanguinate = {
id = 200806 ,
cast = 0 ,
cooldown = 45 ,
gcd = " spell " ,
spend = 25 ,
spendType = " energy " ,
startsCombat = true ,
texture = 538040 ,
talent = " exsanguinate " ,
handler = function ( )
if debuff.crimson_tempest . up then
debuff.crimson_tempest . expires = query_time + ( debuff.crimson_tempest . remains / 2 )
debuff.crimson_tempest . exsanguinated = true
end
if debuff.garrote . up then
debuff.garrote . expires = query_time + ( debuff.garrote . remains / 2 )
debuff.garrote . exsanguinated = true
end
if debuff.internal_bleeding . up then
debuff.internal_bleeding . expires = query_time + ( debuff.internal_bleeding . remains / 2 )
debuff.internal_bleeding . exsanguinated = true
end
if debuff.rupture . up then
debuff.rupture . expires = query_time + ( debuff.rupture . remains / 2 )
debuff.rupture . exsanguinated = true
end
end ,
} ,
fan_of_knives = {
id = 51723 ,
cast = 0 ,
cooldown = 0 ,
gcd = " spell " ,
spend = 35 ,
spendType = " energy " ,
startsCombat = true ,
texture = 236273 ,
cycle = function ( ) return buff.deadly_poison . up and " deadly_poison " or nil end ,
handler = function ( )
gain ( 1 , " combo_points " )
removeBuff ( " hidden_blades " )
if buff.deadly_poison . up then
applyDebuff ( " target " , " deadly_poison " )
active_dot.deadly_poison = min ( active_enemies , active_dot.deadly_poison + 8 )
end
end ,
} ,
feint = {
id = 1966 ,
cast = 0 ,
cooldown = 15 ,
gcd = " spell " ,
spend = function ( ) return 35 - conduit.nimble_fingers . mod end ,
spendType = " energy " ,
startsCombat = false ,
texture = 132294 ,
handler = function ( )
applyBuff ( " feint " )
end ,
} ,
garrote = {
id = 703 ,
cast = 0 ,
cooldown = function ( ) return ( talent.subterfuge . enabled and ( buff.stealth . up or buff.subterfuge . up ) ) and 0 or 6 end ,
gcd = " spell " ,
spend = 45 ,
spendType = " energy " ,
startsCombat = true ,
texture = 132297 ,
aura = " garrote " ,
cycle = " garrote " ,
handler = function ( )
applyDebuff ( " target " , " garrote " , min ( debuff.garrote . remains + debuff.garrote . duration , 1.3 * debuff.garrote . duration ) )
debuff.garrote . pmultiplier = persistent_multiplier
debuff.garrote . exsanguinated = false
gain ( 1 , " combo_points " )
if stealthed.rogue then
if level > 45 then applyDebuff ( " target " , " garrote_silence " ) end
if talent.iron_wire . enabled then applyDebuff ( " target " , " iron_wire " ) end
if azerite.shrouded_suffocation . enabled then
gain ( 2 , " combo_points " )
debuff.garrote . ss_buffed = true
end
end
end ,
} ,
kick = {
id = 1766 ,
cast = 0 ,
cooldown = 15 ,
gcd = " off " ,
startsCombat = true ,
texture = 132219 ,
toggle = " interrupts " ,
interrupt = true ,
debuff = " casting " ,
readyTime = state.timeToInterrupt ,
handler = function ( )
interrupt ( )
if conduit.prepared_for_all . enabled and cooldown.cloak_of_shadows . remains > 0 then
reduceCooldown ( " cloak_of_shadows " , 2 * conduit.prepared_for_all . mod )
end
end ,
} ,
kidney_shot = {
id = 408 ,
cast = 0 ,
cooldown = 20 ,
gcd = " spell " ,
spend = function ( ) return 25 * ( 1 + conduit.rushed_setup . mod * 0.01 ) end ,
spendType = " energy " ,
startsCombat = true ,
texture = 132298 ,
aura = " internal_bleeding " ,
cycle = " internal_bleeding " ,
usable = function ( ) return combo_points.current > 0 end ,
handler = function ( )
if talent.internal_bleeding . enabled then
applyDebuff ( " target " , " internal_bleeding " )
debuff.internal_bleeding . pmultiplier = persistent_multiplier
debuff.internal_bleeding . exsanguinated = false
end
applyDebuff ( " target " , " kidney_shot " , 1 + combo_points.current )
if combo_points.current == animacharged_cp then
removeBuff ( " echoing_reprimand_ " .. combo_points.current )
end
spend ( combo_points.current , " combo_points " )
if talent.elaborate_planning . enabled then applyBuff ( " elaborate_planning " ) end
end ,
} ,
marked_for_death = {
id = 137619 ,
cast = 0 ,
cooldown = 30 ,
gcd = " off " ,
-- toggle = "cooldowns",
startsCombat = false ,
texture = 236364 ,
usable = function ( )
return combo_points.current <= settings.mfd_points , " combo_point ( " .. combo_points.current .. " ) > user preference ( " .. settings.mfd_points .. " ) "
end ,
handler = function ( )
gain ( 5 , " combo_points " )
applyDebuff ( " target " , " marked_for_death " )
end ,
} ,
mutilate = {
id = 1329 ,
cast = 0 ,
cooldown = 0 ,
gcd = " spell " ,
spend = 50 ,
spendType = " energy " ,
startsCombat = true ,
texture = 132304 ,
handler = function ( )
gain ( 2 , " combo_points " )
if talent.venom_rush . enabled and ( debuff.deadly_poison_dot . up or debuff.wound_poison_dot . up or debuff.crippling_poison_dot . up ) then
gain ( 8 , " energy " )
end
end ,
} ,
numbing_poison = {
id = 5761 ,
cast = 1 ,
cooldown = 0 ,
gcd = " spell " ,
startsCombat = false ,
texture = 136066 ,
readyTime = function ( ) return buff.nonlethal_poison . remains - 120 end ,
handler = function ( )
applyBuff ( " numbing_poison " )
end ,
} ,
--[[ pick_lock = {
id = 1804 ,
cast = 1.5 ,
cooldown = 0 ,
gcd = " spell " ,
startsCombat = true ,
texture = 136058 ,
handler = function ( )
end ,
} ,
pick_pocket = {
id = 921 ,
cast = 0 ,
cooldown = 0.5 ,
gcd = " spell " ,
startsCombat = true ,
texture = 133644 ,
handler = function ( )
end ,
} , ] ]
poisoned_knife = {
id = 185565 ,
cast = 0 ,
cooldown = 0 ,
gcd = " spell " ,
spend = 40 ,
spendType = " energy " ,
startsCombat = true ,
texture = 1373909 ,
handler = function ( )
removeBuff ( " sharpened_blades " )
gain ( 1 , " combo_points " )
end ,
} ,
rupture = {
id = 1943 ,
cast = 0 ,
cooldown = 0 ,
gcd = " spell " ,
spend = 25 ,
spendType = " energy " ,
startsCombat = true ,
texture = 132302 ,
aura = " rupture " ,
cycle = " rupture " ,
usable = function ( ) return combo_points.current > 0 , " requires combo_points " end ,
handler = function ( )
applyDebuff ( " target " , " rupture " , min ( dot.rupture . remains , class.auras . rupture.duration * 0.3 ) + 4 + ( 4 * combo_points.current ) )
debuff.rupture . pmultiplier = persistent_multiplier
debuff.rupture . exsanguinated = false
if azerite.scent_of_blood . enabled then
applyBuff ( " scent_of_blood " , dot.rupture . remains )
end
if combo_points.current == animacharged_cp then
removeBuff ( " echoing_reprimand_ " .. combo_points.current )
end
spend ( combo_points.current , " combo_points " )
end ,
} ,
sap = {
id = 6770 ,
cast = 0 ,
cooldown = 0 ,
gcd = " spell " ,
spend = function ( ) return 35 * ( 1 + conduit.rushed_setup . mod * 0.01 ) end ,
spendType = " energy " ,
startsCombat = true ,
texture = 132310 ,
usable = function ( ) return stealthed.all or buff.sepsis_buff . up , " requires stealth " end ,
handler = function ( )
applyDebuff ( " target " , " sap " )
removeBuff ( " sepsis_buff " )
end ,
} ,
shadowstep = {
id = 36554 ,
cast = 0 ,
charges = 1 ,
cooldown = function ( )
return 30 * ( 1 - conduit.quick_decisions . mod * 0.01 ) * ( pvptalent.intent_to_kill . enabled and debuff.vendetta . up and 0.1 or 1 )
end ,
recharge = function ( )
if pvptalent.intent_to_kill . enabled and debuff.vendetta . up then return 10 end
return 30 * ( 1 - conduit.quick_decisions . mod * 0.01 )
end ,
gcd = " spell " ,
startsCombat = false ,
texture = 132303 ,
handler = function ( )
applyBuff ( " shadowstep " )
setDistance ( 5 )
end ,
} ,
shiv = {
id = 5938 ,
cast = 0 ,
cooldown = 25 ,
gcd = " spell " ,
spend = function ( ) return legendary.tiny_toxic_blade . enabled and 0 or 20 end ,
spendType = " energy " ,
startsCombat = true ,
texture = 135428 ,
handler = function ( )
gain ( 1 , " combo_points " )
applyDebuff ( " target " , " crippling_poison_shiv " )
if level > 57 then applyDebuff ( " target " , " shiv " ) end
if conduit.wellplaced_steel . enabled and debuff.envenom . up then
debuff.envenom . expires = debuff.envenom . expires + conduit.wellplaced_steel . mod
end
end ,
auras = {
crippling_poison_shiv = {
id = 115196 ,
duration = 9 ,
max_stack = 1 ,
} ,
shiv = {
id = 319504 ,
duration = 9 ,
max_stack = 1 ,
} ,
}
} ,
shroud_of_concealment = {
id = 114018 ,
cast = 0 ,
cooldown = 360 ,
gcd = " spell " ,
startsCombat = false ,
texture = 635350 ,
usable = function ( ) return stealthed.all , " requires stealth " end ,
handler = function ( )
applyBuff ( " shroud_of_concealment " )
if conduit.fade_to_nothing . enabled then applyBuff ( " fade_to_nothing " ) end
end ,
} ,
sprint = {
id = 2983 ,
cast = 0 ,
cooldown = 120 ,
gcd = " spell " ,
startsCombat = false ,
texture = 132307 ,
handler = function ( )
applyBuff ( " sprint " )
end ,
} ,
stealth = {
id = 1784 ,
cast = 0 ,
cooldown = 2 ,
gcd = " spell " ,
startsCombat = false ,
texture = 132320 ,
usable = function ( ) return time == 0 and not buff.stealth . up and not buff.vanish . up , " requires out of combat and not stealthed " end ,
handler = function ( )
applyBuff ( " stealth " )
if conduit.cloaked_in_shadows . enabled then applyBuff ( " cloaked_in_shadows " ) end
if conduit.fade_to_nothing . enabled then applyBuff ( " fade_to_nothing " ) end
end ,
auras = {
-- Conduit
cloaked_in_shadows = {
id = 341530 ,
duration = 3600 ,
max_stack = 1
} ,
-- Conduit
fade_to_nothing = {
id = 341533 ,
duration = 3 ,
max_stack = 1
}
}
} ,
tricks_of_the_trade = {
id = 57934 ,
cast = 0 ,
cooldown = 30 ,
gcd = " spell " ,
startsCombat = false ,
texture = 236283 ,
handler = function ( )
applyBuff ( " tricks_of_the_trade " )
end ,
} ,
vanish = {
id = 1856 ,
cast = 0 ,
cooldown = 120 ,
gcd = " spell " ,
startsCombat = false ,
texture = 132331 ,
disabled = function ( )
return not settings.solo_vanish and not ( boss and group ) , " can only vanish in a boss encounter or with a group "
end ,
handler = function ( )
applyBuff ( " vanish " )
applyBuff ( " stealth " )
if conduit.cloaked_in_shadows . enabled then applyBuff ( " cloaked_in_shadows " ) end -- ???
if conduit.fade_to_nothing . enabled then applyBuff ( " fade_to_nothing " ) end
if legendary.invigorating_shadowdust . enabled then
for name , cd in pairs ( cooldown ) do
if cd.remains > 0 then reduceCooldown ( name , 20 ) end
end
end
end ,
} ,
vendetta = {
id = 79140 ,
cast = 0 ,
cooldown = function ( ) return ( essence.vision_of_perfection . enabled and 0.87 or 1 ) * 120 end ,
gcd = " off " ,
toggle = " cooldowns " ,
startsCombat = false ,
texture = 458726 ,
aura = " vendetta " ,
handler = function ( )
applyDebuff ( " target " , " vendetta " )
applyBuff ( " vendetta_regen " )
if azerite.nothing_personal . enabled then
applyDebuff ( " target " , " nothing_personal " )
applyBuff ( " nothing_personal_regen " )
end
end ,
} ,
wound_poison = {
id = 8679 ,
cast = 1.5 ,
cooldown = 0 ,
gcd = " spell " ,
startsCombat = false ,
essential = true ,
texture = 134197 ,
readyTime = function ( ) return buff.lethal_poison . remains - 120 end ,
handler = function ( )
applyBuff ( " wound_poison " )
end ,
} ,
apply_poison = {
name = _G.MINIMAP_TRACKING_VENDOR_POISON ,
cast = 1.5 ,
cooldown = 0 ,
gcd = " spell " ,
startsCombat = false ,
essential = true ,
texture = function ( )
if buff.lethal_poison . down or level < 33 then
return state.spec . assassination and level > 12 and class.abilities . deadly_poison.texture or class.abilities . instant_poison.texture
end
if level > 32 and buff.nonlethal_poison . down then return class.abilities . crippling_poison.texture end
end ,
usable = function ( )
return buff.lethal_poison . down or level > 32 and buff.nonlethal_poison . down , " requires missing poison "
end ,
handler = function ( )
if buff.lethal_poison . down then
applyBuff ( state.spec . assassination and level > 12 and " deadly_poison " or " instant_poison " )
elseif level > 32 then applyBuff ( " crippling_poison " ) end
end ,
} ,
-- Covenant Abilities
-- Rogue - Kyrian - 323547 - echoing_reprimand (Echoing Reprimand)
echoing_reprimand = {
id = 323547 ,
cast = 0 ,
cooldown = 45 ,
gcd = " spell " ,
spend = function ( ) return 10 * ( ( talent.shadow_focus . enabled and ( buff.shadow_dance . up or buff.stealth . up ) ) and 0.8 or 1 ) end ,
spendType = " energy " ,
startsCombat = true ,
texture = 3565450 ,
toggle = " essences " ,
cp_gain = function ( ) return ( buff.shadow_blades . up and 1 or 0 ) + ( buff.broadside . up and 1 or 0 ) + 2 end ,
handler = function ( )
-- Can't predict the Animacharge, unless you have the legendary.
if legendary.resounding_clarity . enabled then
applyBuff ( " echoing_reprimand_2 " , nil , 2 )
applyBuff ( " echoing_reprimand_3 " , nil , 3 )
applyBuff ( " echoing_reprimand_4 " , nil , 4 )
applyBuff ( " echoing_reprimand_5 " , nil , 5 )
end
gain ( action.echoing_reprimand . cp_gain , " combo_points " )
end ,
disabled = function ( )
return covenant.kyrian and not IsSpellKnownOrOverridesKnown ( 323547 ) , " you have not finished your kyrian covenant intro "
end ,
auras = {
echoing_reprimand_2 = {
id = 323558 ,
duration = 45 ,
max_stack = 6 ,
} ,
echoing_reprimand_3 = {
id = 323559 ,
duration = 45 ,
max_stack = 6 ,
} ,
echoing_reprimand_4 = {
id = 323560 ,
duration = 45 ,
max_stack = 6 ,
} ,
echoing_reprimand_5 = {
id = 354838 ,
duration = 45 ,
max_stack = 6 ,
} ,
echoing_reprimand = {
alias = { " echoing_reprimand_2 " , " echoing_reprimand_3 " , " echoing_reprimand_4 " , " echoing_reprimand_5 " } ,
aliasMode = " first " ,
aliasType = " buff " ,
meta = {
stack = function ( )
if combo_points.current > 1 and buff [ " echoing_reprimand_ " .. combo_points.current ] . up then return combo_points.current end
if buff.echoing_reprimand_2 . up then return 2 end
if buff.echoing_reprimand_3 . up then return 3 end
if buff.echoing_reprimand_4 . up then return 4 end
if buff.echoing_reprimand_5 . up then return 5 end
return 0
end
}
}
}
} ,
-- Rogue - Necrolord - 328547 - serrated_bone_spike (Serrated Bone Spike)
serrated_bone_spike = {
id = 328547 ,
cast = 0 ,
charges = function ( ) return legendary.deathspike . equipped and 5 or 3 end ,
cooldown = 30 ,
recharge = 30 ,
gcd = " spell " ,
startsCombat = true ,
texture = 3578230 ,
toggle = " essences " ,
cycle = " serrated_bone_spike " ,
cp_gain = function ( ) return ( buff.broadside . up and 1 or 0 ) + active_dot.serrated_bone_spike end ,
handler = function ( )
applyDebuff ( " target " , " serrated_bone_spike " )
gain ( ( buff.broadside . up and 1 or 0 ) + active_dot.serrated_bone_spike , " combo_points " )
if soulbind.kevins_oozeling . enabled then applyBuff ( " kevins_oozeling " ) end
end ,
auras = {
serrated_bone_spike = {
id = 324073 ,
duration = 3600 ,
max_stack = 1 ,
copy = " serrated_bone_spike_dot " ,
} ,
}
} ,
-- Rogue - Night Fae - 328305 - sepsis (Sepsis)
sepsis = {
id = 328305 ,
cast = 0 ,
cooldown = 90 ,
gcd = " spell " ,
startsCombat = true ,
texture = 3636848 ,
toggle = " essences " ,
handler = function ( )
applyDebuff ( " target " , " sepsis " )
end ,
auras = {
sepsis = {
id = 328305 ,
duration = 10 ,
max_stack = 1 ,
} ,
sepsis_buff = {
id = 347037 ,
duration = 5 ,
max_stack = 1
}
}
} ,
-- Rogue - Venthyr - 323654 - flagellation (Flagellation)
flagellation = {
id = 323654 ,
cast = 0 ,
cooldown = 90 ,
gcd = " spell " ,
spend = 0 ,
spendType = " energy " ,
startsCombat = true ,
texture = 3565724 ,
toggle = " essences " ,
handler = function ( )
applyBuff ( " flagellation " )
applyDebuff ( " target " , " flagellation " , 30 )
end ,
auras = {
flagellation = {
id = 323654 ,
duration = 12 ,
max_stack = 30 ,
generate = function ( t , aType )
local unit , func
if aType == " debuff " then
unit = " target "
func = FindUnitDebuffByID
else
unit = " player "
func = FindUnitBuffByID
end
local name , _ , count , _ , duration , expires , caster = func ( unit , 323654 )
if name then
t.count = 1
t.duration = duration
t.expires = expires
t.applied = expires - duration
t.caster = " player "
return
end
t.count = 0
t.expires = 0
t.applied = 0
t.caster = " nobody "
end ,
copy = " flagellation_buff "
} ,
} ,
} ,
-- PvP Talents
shadowy_duel = {
id = 207736 ,
cast = 0 ,
cooldown = 120 ,
gcd = " off " ,
pvptalent = " shadowy_duel " ,
startsCombat = false ,
texture = 1020341 ,
usable = function ( ) return target.is_player , " requires a player target " end ,
handler = function ( )
applyBuff ( " shadowy_duel " )
end ,
auras = {
shadowy_duel = {
id = 210558 ,
duration = 6 ,
max_stack = 1 ,
} ,
}
} ,
smoke_bomb = {
id = 212182 ,
cast = 0 ,
cooldown = 180 ,
gcd = " spell " ,
pvptalent = " smoke_bomb " ,
startsCombat = false ,
texture = 458733 ,
handler = function ( )
applyDebuff ( " player " , " smoke_bomb " )
if target.within8 then applyDebuff ( " target " , " smoke_bomb " ) end
end ,
auras = {
smoke_bomb = {
id = 212183 ,
duration = 5 ,
max_stack = 1 ,
} ,
}
} ,
} )
spec : RegisterOptions ( {
enabled = true ,
aoe = 3 ,
nameplates = true ,
nameplateRange = 8 ,
damage = true ,
damageExpiration = 6 ,
potion = " phantom_fire " ,
package = " Assassination " ,
} )
spec : RegisterSetting ( " priority_rotation " , false , {
name = " Funnel AOE -> Target " ,
desc = " If checked, the addon's default priority list will focus on funneling damage into your primary target when multiple enemies are present. " ,
type = " toggle " ,
width = 1.5
} )
spec : RegisterSetting ( " envenom_pool_pct " , 50 , {
name = " Energy % for |T132287:0|t Envenom " ,
desc = " If set above 0, the addon will pool to this Energy threshold before recommending |T132287:0|t Envenom. " ,
type = " range " ,
min = 0 ,
max = 100 ,
step = 1 ,
width = 1.5
} )
spec : RegisterStateExpr ( " envenom_pool_deficit " , function ( )
return energy.max * ( ( 100 - ( settings.envenom_pool_pct or 100 ) ) / 100 )
end )
spec : RegisterSetting ( " mfd_points " , 3 , {
name = " |T236340:0|t Marked for Death Combo Points " ,
desc = " The addon will only recommend |T236364:0|t Marked for Death when you have the specified number of combo points or fewer. " ,
type = " range " ,
min = 0 ,
max = 5 ,
step = 1 ,
width = " full "
} )
spec : RegisterSetting ( " solo_vanish " , true , {
name = " Allow |T132331:0|t Vanish when Solo " ,
desc = " If unchecked, the addon will not recommend |T132331:0|t Vanish when you are alone (to avoid resetting combat). " ,
type = " toggle " ,
width = " full "
} )
spec : RegisterSetting ( " allow_shadowmeld " , nil , {
name = " Allow |T132089:0|t Shadowmeld " ,
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. " ..
" Shadowmeld can only be recommended in boss fights or when you are in a group (to avoid resetting combat). " ,
type = " toggle " ,
width = " full " ,
get = function ( ) return not Hekili.DB . profile.specs [ 259 ] . abilities.shadowmeld . disabled end ,
set = function ( _ , val )
Hekili.DB . profile.specs [ 259 ] . abilities.shadowmeld . disabled = not val
end ,
} )
spec : RegisterPack ( " Assassination " , 20211101 , [ [ diLcDcqiKipIQkDjKKsBIk1Najgfs4uGuRsjv9kHkZIkPBPKWUK0VajnmKehtL0YiKEMskMgvcxtjL2gss6BijvnoKKIZrLOyDeI8oKKkP5riCpc1 ( OQQ ) HKujoOsISqKOEivvmrLuPlsvrTrcr1hrsIrIKuPoPsIQvIK6LujkntQkYnjeLDQK0pPsuXqvsflLQcEkrMQqv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