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

Coding: Change behaviour of Furious Charge?

lota7

Member
Joined
Nov 23, 2010
Messages
108
Reaction score
2
Trinity 2.13.19
Build: HotA Focus/Restraint

Scenario: Killing Elites.
When bot goes for elites it attacks as it should, but when a mob is within area, he uses furious charge on that mob on the other side of screen and then walks back to the elite doing nothing to the mobs in between. Repeat.
Problem is if bot gets stuck in between then it just tries to circle round till he can attack the elite, in higher rifts he dies cause of this.
Another problem is the loss of dps on elite due to having run a screen length back to the elite, only to furious charge on that mob on the other side again when focus / restraint buff is soon gone.

Anyone can help change the code to use charge as is now on normal mobs, but when an elite is present, choose that elite to be the target of furious charge (to proc focus/restraint) and continue hammering him.
From looking at the code it seems to value charging max distance as possible as the highest priority, which is only good if running Raekors build.

Thanks
 
Using this to talk to you :

To start, amazing job it's almost perfect.

But, could he use like a 3 minions hit logic for the CD reset when it's possible or smth like that ?

TY for your time.


I changed it from 5 to 3


public static bool CanUseFuriousCharge
{
get
{
if (UseOOCBuff)
return false;

var bestTarget = TargetUtil.GetBestPierceTarget(MaxFuriousChargeDistance);
var unitsInFrontOfBestTarget = 0;

if (bestTarget != null)
unitsInFrontOfBestTarget = bestTarget.CountUnitsInFront();

var currentEliteTargetInRange = CurrentTarget.RadiusDistance > 7f && CurrentTarget.IsBossOrEliteRareUnique && CurrentTarget.RadiusDistance <= 35f;
var shouldUseForHealing = Player.CurrentHealthPct < 0.50;

//if (Sets.BastionsOfWill.IsFullyEquipped && !Sets.TheLegacyOfRaekor.IsFullyEquipped)
return CanCast(SNOPower.Barbarian_FuriousCharge, CanCastFlags.NoTimer) && !IsCurrentlyAvoiding &&
Skills.Barbarian.FuriousCharge.Charges > 0 && (TimeSincePowerUse(SNOPower.Barbarian_FuriousCharge) > 100 || !CurrentTarget.IsInLineOfSight());

return CanCast(SNOPower.Barbarian_FuriousCharge, CanCastFlags.NoTimer) && !IsCurrentlyAvoiding && Skills.Barbarian.FuriousCharge.Charges > 0 &&
(currentEliteTargetInRange || unitsInFrontOfBestTarget >= 3 || Sets.TheLegacyOfRaekor.IsFullyEquipped);

}
}
 
how do you make it work in a HOTA or SS build where you want it to Furious Charge, then spam HOTA or SS once or twice, then FC again???
 
Back
Top