I noticed that my DH doesn't use Preparation when low on Discipline.
Tried to fix it but without success. The only time Preparation is working is when used with the Punishment Rune (75 hatred for 25 disc).
So I opened DB\Plugins\Trinity\Combat\Abilities\DemonHunter.cs and found everything to look good basically..
So any help would be greatly appreciated
Tried to fix it but without success. The only time Preparation is working is when used with the Punishment Rune (75 hatred for 25 disc).
So I opened DB\Plugins\Trinity\Combat\Abilities\DemonHunter.cs and found everything to look good basically..
Code:
// Preperation: restore 30 disc / 45 sec cd
// Invigoration = 1 : passive + 15 disc / 45 sec cd
// Punishment = 0 : Cost: 25 disc, restore 75 hatred / NO COOLDOWN
// Battle Scars = 3 : instantly restore 40% health + restore 30 disc / 45 sec cd
// Focused Mind = 2 : restore 45 disc over 15 sec / 45 sec cd
// Backup plan = 4 : 30% chance Prep has no cooldown (remove cast timer)
// Restore 75 hatred for 25 disc - NO COOLDOWN!
bool hasPunishment = HotbarSkills.AssignedSkills.Any(s => s.Power == SNOPower.DemonHunter_Preparation && s.RuneIndex == 0);
bool hasInvigoration = HotbarSkills.AssignedSkills.Any(s => s.Power == SNOPower.DemonHunter_Preparation && s.RuneIndex == 1);
bool hasBattleScars = HotbarSkills.AssignedSkills.Any(s => s.Power == SNOPower.DemonHunter_Preparation && s.RuneIndex == 3);
bool hasFocusedMind = HotbarSkills.AssignedSkills.Any(s => s.Power == SNOPower.DemonHunter_Preparation && s.RuneIndex == 2);
bool hasBackupPlan = HotbarSkills.AssignedSkills.Any(s => s.Power == SNOPower.DemonHunter_Preparation && s.RuneIndex == 4);
float preperationTriggerRange = V.F("DemonHunter.PreperationTriggerRange");
if (((!UseOOCBuff && !Player.IsIncapacitated &&
(TargetUtil.AnyMobsInRange(preperationTriggerRange))) || Settings.Combat.DemonHunter.SpamPreparation || hasPunishment) &&
Hotbar.Contains(SNOPower.DemonHunter_Preparation))
{
// Preperation w/ Punishment
if (hasPunishment && CombatBase.CanCast(SNOPower.DemonHunter_Preparation, CombatBase.CanCastFlags.NoTimer) && Player.SecondaryResource >= 25 && Player.PrimaryResourceMissing >= 75)
{
return new TrinityPower(SNOPower.DemonHunter_Preparation, 0f, Vector3.Zero, CurrentWorldDynamicId, -1, 1, 1, WAIT_FOR_ANIM);
}
[B]// Preperation w/ Battle Scars - check for health only
if (hasBattleScars && CombatBase.CanCast(SNOPower.DemonHunter_Preparation, CombatBase.CanCastFlags.NoTimer) && Player.CurrentHealthPct < 0.6)
{
return new TrinityPower(SNOPower.DemonHunter_Preparation, 0f, Vector3.Zero, CurrentWorldDynamicId, -1, 1, 1, WAIT_FOR_ANIM);
}
// no rune || invigoration || focused mind || Backup Plan || Battle Scars (need Disc)
if ((!hasPunishment) && CombatBase.CanCast(SNOPower.DemonHunter_Preparation, CombatBase.CanCastFlags.NoTimer) && Player.SecondaryResourceMissing >= 30)
{
return new TrinityPower(SNOPower.DemonHunter_Preparation, 0f, Vector3.Zero, CurrentWorldDynamicId, -1, 1, 1, WAIT_FOR_ANIM);
}[/B]
}
So any help would be greatly appreciated






