Cass
New Member
- Joined
- Jan 24, 2014
- Messages
- 98
It seems that Darkness Assassin its suffering from the same problem as Madness Sorc
the bot cant recognize Harnessed Darkness buff at 3 stacks
I even included conditionals to see if the rotation would at least hang on the other skills as you can check on the code below
But the bot nether use depredating volts as the other skills keep firing even when the buff its bigger then 2.
If i manually cast it it will break the cast (as it is channeled) and will then cast the skill for some time, but to soon stop using it again.
Is another way to specify the buff on the conditional as with a spell id or something, as a way to ensure the routine to run as expected?
Thanks for any help, this may help fixing madness sorc too
the bot cant recognize Harnessed Darkness buff at 3 stacks
I even included conditionals to see if the rotation would at least hang on the other skills as you can check on the code below
PHP:
Spell.Cast("Depredating Volts", ret => Me.BuffCount("Harnessed Darkness") == 3),
Spell.Cast("Wither",
ret =>
Me.BuffCount("Harnessed Darkness") <= 2),
Spell.Cast("Shock",
ret =>
Me.BuffCount("Harnessed Darkness") <= 2 &&
!Buddy.CommonBot.AbilityManager.CanCast("Wither", Me.CurrentTarget)),
Spell.Cast("Discharge",
ret =>
Me.BuffCount("Harnessed Darkness") <= 2 &&
!Buddy.CommonBot.AbilityManager.CanCast("Wither", Me.CurrentTarget) &&
!Buddy.CommonBot.AbilityManager.CanCast("Shock", Me.CurrentTarget)),
Spell.Cast("Maul",
ret =>
Me.HasBuff("Conspirator's Cloak") &&
Me.BuffCount("Harnessed Darkness") <= 2 &&
!Buddy.CommonBot.AbilityManager.CanCast("Wither", Me.CurrentTarget) &&
!Buddy.CommonBot.AbilityManager.CanCast("Shock", Me.CurrentTarget) &&
!Buddy.CommonBot.AbilityManager.CanCast("Discharge", Me.CurrentTarget)),
Spell.Cast("Assassinate",
ret =>
Me.CurrentTarget.HealthPercent <= 30 &&
Me.BuffCount("Harnessed Darkness") <= 2 &&
!Buddy.CommonBot.AbilityManager.CanCast("Wither", Me.CurrentTarget) &&
!Buddy.CommonBot.AbilityManager.CanCast("Shock", Me.CurrentTarget) &&
!Buddy.CommonBot.AbilityManager.CanCast("Discharge", Me.CurrentTarget) &&
!Me.HasBuff("Conspirator's Cloak")),
Spell.Cast("Thrash",
ret =>
Me.BuffCount("Harnessed Darkness") <= 2 &&
!Buddy.CommonBot.AbilityManager.CanCast("Wither", Me.CurrentTarget) &&
!Buddy.CommonBot.AbilityManager.CanCast("Shock", Me.CurrentTarget) &&
!Buddy.CommonBot.AbilityManager.CanCast("Discharge", Me.CurrentTarget) &&
!Me.HasBuff("Conspirator's Cloak") &&
!Buddy.CommonBot.AbilityManager.CanCast("Assassinate", Me.CurrentTarget)),
Spell.Cast("Saber Strike",
ret =>
Me.ForcePercent <= 35 &&
Me.BuffCount("Harnessed Darkness") <= 2 &&
!Buddy.CommonBot.AbilityManager.CanCast("Wither", Me.CurrentTarget) &&
!Buddy.CommonBot.AbilityManager.CanCast("Shock", Me.CurrentTarget) &&
!Buddy.CommonBot.AbilityManager.CanCast("Discharge", Me.CurrentTarget) &&
!Me.HasBuff("Conspirator's Cloak") &&
!Buddy.CommonBot.AbilityManager.CanCast("Assassinate", Me.CurrentTarget))
But the bot nether use depredating volts as the other skills keep firing even when the buff its bigger then 2.
If i manually cast it it will break the cast (as it is channeled) and will then cast the skill for some time, but to soon stop using it again.
Is another way to specify the buff on the conditional as with a spell id or something, as a way to ensure the routine to run as expected?
Thanks for any help, this may help fixing madness sorc too