Hello people,
tried to fix the code but it doesn't work. Should be an easy thing for some guys here (atleast i hope)
For my setup i only need "Furious Charge" to gain Fury, nothing else. So i tried to add the condition to use it only below 50 Fury. Problem is that he now stops after entering a rift and waits for his dead. I tried to fix this here:
Plugins\Trinity\Combat\Abilities\BarbarianCombat.cs
and changed the last part to:
Maybe i am just stucked with the way i think about this or it is the wrong part of the code but shouldn't it add just the condition of less than 50 Fury to the Code?
Feel free to help me
EDIT: I am using Trinity_v3
tried to fix the code but it doesn't work. Should be an easy thing for some guys here (atleast i hope)
For my setup i only need "Furious Charge" to gain Fury, nothing else. So i tried to add the condition to use it only below 50 Fury. Problem is that he now stops after entering a rift and waits for his dead. I tried to fix this here:
Plugins\Trinity\Combat\Abilities\BarbarianCombat.cs
Code:
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;
if (Sets.BastionsOfWill.IsFullyEquipped && !Sets.TheLegacyOfRaekor.IsFullyEquipped)
return CanCast(SNOPower.Barbarian_FuriousCharge, CanCastFlags.NoTimer) && !IsCurrentlyAvoiding &&
Skills.Barbarian.FuriousCharge.Charges > 0 && (TimeSincePowerUse(SNOPower.Barbarian_FuriousCharge) > 4000 || !CurrentTarget.IsInLineOfSight());
return CanCast(SNOPower.Barbarian_FuriousCharge, CanCastFlags.NoTimer) && !IsCurrentlyAvoiding && Skills.Barbarian.FuriousCharge.Charges > 0 &&
(currentEliteTargetInRange || unitsInFrontOfBestTarget >= 3 || Sets.TheLegacyOfRaekor.IsFullyEquipped);
and changed the last part to:
Code:
return CanCast(SNOPower.Barbarian_FuriousCharge, CanCastFlags.NoTimer) && !IsCurrentlyAvoiding && Skills.Barbarian.FuriousCharge.Charges > 0 &&
(currentEliteTargetInRange || unitsInFrontOfBestTarget >= 3 || Sets.TheLegacyOfRaekor.IsFullyEquipped) [COLOR="#FF0000"][B]&& Player.PrimaryResource < 50[/B][/COLOR];
Maybe i am just stucked with the way i think about this or it is the wrong part of the code but shouldn't it add just the condition of less than 50 Fury to the Code?
Feel free to help me
EDIT: I am using Trinity_v3
Last edited:






