What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Heavens Fury and 1 mob

hsjyes

Member
Joined
May 13, 2014
Messages
398
Reaction score
1
Hi guys,

Is there a way to have it cast heavens fury when there is only 1 mob? I have the setting in trinity set to 1 mob but will always just use justice ( yes I run with a generator :()

Just wondering if there is a edit one can do in the code?

Also, bounties and shrines, will never cast heavens fury at all, even with all the mobs around ( waves) will just cast the generator.

Thanks
 
In the Combat Crusader Tab in Trinity change the slider for Heavens Fury AOE Count to 1
 
Go to DB- Plugins- Trinity-combat- Abilities- Crusadercombat.cs

Find this code

private static bool CanCastHeavensFury()
{
return CombatBase.CanCast(SNOPower.X1_Crusader_HeavensFury3) && (TargetUtil.EliteOrTrashInRange(16f) || TargetUtil. CrusaderSettings.HeavensFuryAoECount));

Change to this;


private static bool CanCastHeavensFury()
{
return CombatBase.CanCast(SNOPower.X1_Crusader_HeavensFury3) && (TargetUtil.EliteOrTrashInRange(16f) || TargetUtil.AnyMobsInRange(16, 1));








credit: fujiyama
 
Last edited:
Thanks stud, that did the trick. Doesnt work using the slider in Trinity just an FYI.
 
I had to make one small change to the CrusaderCombat file as well. It's minor but helped me a lot.

In short, I tend to have issues with Wrath as I built with no regen, etc... So I am currently running:

SKILL: Laws of Valor: Unstoppable force
Reduces wrath costs 50% for 5 seconds while the Law is active​

PASSIVE: Long Arm of the Law
Makes every law last 5 more seconds​

I run about 53% CDR (72% Raw cooldown).
Laws of Valor cooldown goes from 30 to 14 seconds.
With passive, the skill lasts 10 seconds so I only have 4 seconds of downtime!
IE: I have 50% cost reduction for 10 seconds out of every 14.

The issue is that DB tends to be a little selective over when to cast the law. So I changed one number and fixed my issue:


Go open your DemonBuddy > Plugins > Trinity > Combat > Abilities > CrusaderCombat.cs
Search LawsOfValor

Code:
// LawsOfValor
                // LawsOfValor2
                if (CanCast(SNOPower.X1_Crusader_LawsOfValor2) && (TargetUtil.EliteOrTrashInRange(16f) || [COLOR="#B22222"]TargetUtil.AnyMobsInRange[/COLOR](15f, [COLOR="#FF0000"][B][SIZE=5]5[/SIZE][/B][/COLOR])))
                {
                    return new TrinityPower(SNOPower.X1_Crusader_LawsOfValor2);
                }

Change it to:

Code:
// LawsOfValor
                // LawsOfValor2
                if (CanCast(SNOPower.X1_Crusader_LawsOfValor2) && (TargetUtil.EliteOrTrashInRange(16f) || [COLOR="#22B222"]TargetUtil.AnyMobsInRange[/COLOR](15f, [COLOR="#00FF00"][B][SIZE=5]1[/SIZE][/B][/COLOR])))
                {
                    return new TrinityPower(SNOPower.X1_Crusader_LawsOfValor2);
                }

Now it basically spams it whenever it's off cooldown and in combat, even if just against one mob.
 
Go to DB- Plugins- Trinity-combat- Abilities- Crusadercombat.cs

Find this code

private static bool CanCastHeavensFury()
{
return CombatBase.CanCast(SNOPower.X1_Crusader_HeavensFury3) && (TargetUtil.EliteOrTrashInRange(16f) || TargetUtil. CrusaderSettings.HeavensFuryAoECount));

Change to this;


private static bool CanCastHeavensFury()
{
return CombatBase.CanCast(SNOPower.X1_Crusader_HeavensFury3) && (TargetUtil.EliteOrTrashInRange(16f) || TargetUtil.AnyMobsInRange(16, 1));








credit: fujiyama

Can anyone post a crusader setting file for this, whenever i try i always get a compiler error, sorry complete noob here! :(
 
Can anyone post a crusader setting file for this, whenever i try i always get a compiler error, sorry complete noob here! :(

He typo'd it I guess...


private static bool CanCastHeavensFury()
{
return CombatBase.CanCast(SNOPower.X1_Crusader_HeavensFury3) && (TargetUtil.EliteOrTrashInRange(16f) || TargetUtil.AnyMobsInRange(16f, 1));
}
 
Can anyone post a crusader setting file for this, whenever i try i always get a compiler error, sorry complete noob here! :(

return CombatBase.CanCast(SNOPower.X1_Crusader_HeavensFur y3)

"HeavensFur y3"

There shouldn't be a space. That was a typo.

It should look like this

CombatBase.CanCast(SNOPower.X1_Crusader_HeavensFury3)
 
Hi Stud and Job, that's great thankyou, i've read the how to edit trinity thread, and i'm assuming that the '16f' is the range to target? Because currently what's happening is if there's 1-2 mobs next to me, but 3+ mobs 10+yards away, it targets the 3+mop group. Which isn't really optimal for the shotgun build.
 
Hi Stud and Job, that's great thankyou, i've read the how to edit trinity thread, and i'm assuming that the '16f' is the range to target? Because currently what's happening is if there's 1-2 mobs next to me, but 3+ mobs 10+yards away, it targets the 3+mop group. Which isn't really optimal for the shotgun build.

"16f" means 16 feet. you can lower that number to 8 feet like TargetUtil.AnyMobsInRange(8f, 1));
 
The code I use with the 6piece Akkhan set will have him spam Heaven's Fury at close range (so the beams can double hit sometimes) and only when he is in Akarat's Champion form. The 5-6 seconds between buffs he'll just drain his wrath casting it and I find it better to just have him use other abilities until Akarats is off CD again.


Code:
private static bool CanCastHeavensFury()
        {
           return CombatBase.CanCast(SNOPower.X1_Crusader_HeavensFury3) && GetHasBuff(SNOPower.X1_Crusader_AkaratsChampion) && (TargetUtil.EliteOrTrashInRange(5f) || TargetUtil.AnyMobsInRange(5f, 1));
        }
 
Back
Top