minor changes

main
Dreamzlol 2 years ago
parent f3bc78d449
commit 32130ec211
  1. 19
      scripts/DreamsRotations - Rogue Assassination PvE (WOTLK).lua

@ -49,7 +49,7 @@ local PotionOfSpeed = Bastion.ItemBook:GetItem(40211)
local PreCombatAPL = Bastion.APL:New('precombat') local PreCombatAPL = Bastion.APL:New('precombat')
local DefaultAPL = Bastion.APL:New('default') local DefaultAPL = Bastion.APL:New('default')
-- actions.precombat+=/tricks_of_the_trade -- actions.precombat+=/tricks_of_the_trade,if=group
PreCombatAPL:AddSpell( PreCombatAPL:AddSpell(
TricksOfTheTrade:CastableIf(function(self) TricksOfTheTrade:CastableIf(function(self)
return Focus:Exists() and self:IsInRange(Focus) and self:IsKnownAndUsable() and Focus:IsAffectingCombat() return Focus:Exists() and self:IsInRange(Focus) and self:IsKnownAndUsable() and Focus:IsAffectingCombat()
@ -101,28 +101,28 @@ DefaultAPL:AddSpell(
-- actions+=/vanish,if=talent.overkill.enabled&buff.overkill.down -- actions+=/vanish,if=talent.overkill.enabled&buff.overkill.down
DefaultAPL:AddSpell( DefaultAPL:AddSpell(
Vanish:CastableIf(function(self) Vanish:CastableIf(function(self)
return Target:Exists() and self:IsKnownAndUsable() and self:IsInRange(Target) and not Player:GetAuras():FindMy(Overkill):IsUp() return Target:Exists() and self:IsKnownAndUsable() and self:IsInRange(Target) and Target:IsBoss() and not Player:GetAuras():FindMy(Overkill):IsUp()
end):SetTarget(Target) end):SetTarget(Target)
) )
-- actions+=/envenom,if=combo_points.deficit=0&buff.cold_blood.up -- actions+=/tricks_of_the_trade,if=group
DefaultAPL:AddSpell( DefaultAPL:AddSpell(
Envenom:CastableIf(function(self) TricksOfTheTrade:CastableIf(function(self)
return Target:Exists() and self:IsKnownAndUsable() and self:IsInRange(Target) and Player:GetComboPointsDeficit(Target) < 1 and Player:GetAuras():FindMy(ColdBlood):IsUp() return Focus:Exists() and self:IsInRange(Focus) and self:IsKnownAndUsable() and Focus:IsAffectingCombat()
end):SetTarget(Target) end):SetTarget(Focus)
) )
-- actions+=/cold_blood,if=combo_points.deficit=0 -- actions+=/cold_blood,if=combo_points.deficit=0
DefaultAPL:AddSpell( DefaultAPL:AddSpell(
ColdBlood:CastableIf(function(self) ColdBlood:CastableIf(function(self)
return Target:Exists() and self:IsKnownAndUsable() and self:IsInRange(Target) and Player:GetComboPointsDeficit(Target) < 1 and Target:IsBoss() return Target:Exists() and self:IsKnownAndUsable() and self:IsInRange(Target) and Target:IsBoss() and Player:GetComboPointsDeficit(Target) < 2 and not Player:GetAuras():FindMy(Envenom):IsUp()
end):SetTarget(Target) end):SetTarget(Target)
) )
-- actions+=/envenom,if=combo_points.deficit<2&(debuff.envenom.down|energy.time_to_max<debuff.envenom.remains) -- actions+=/envenom,if=combo_points.deficit<2&(debuff.envenom.down|energy.time_to_max<debuff.envenom.remains)
DefaultAPL:AddSpell( DefaultAPL:AddSpell(
Envenom:CastableIf(function(self) Envenom:CastableIf(function(self)
return Target:Exists() and self:IsKnownAndUsable() and self:IsInRange(Target) and Player:GetComboPointsDeficit(Target) < 2 and not Player:GetAuras():FindMy(Envenom):IsUp() and Player:GetPowerDeficit() < 30 return Target:Exists() and self:IsKnownAndUsable() and self:IsInRange(Target) and Player:GetComboPointsDeficit(Target) < 2 and not Player:GetAuras():FindMy(Envenom):IsUp() and Player:GetPowerDeficit() < 35
end):SetTarget(Target) end):SetTarget(Target)
) )
@ -139,6 +139,9 @@ AssassinationModule:Sync(function()
end end
if Player:IsAffectingCombat() then if Player:IsAffectingCombat() then
DefaultAPL:Execute() DefaultAPL:Execute()
if not IsPlayerAttacking('target') then
Eval('StartAttack()', 't')
end
end end
Draw:Enable() Draw:Enable()

Loading…
Cancel
Save