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

Problem with auto attacking single mobs (Barb)

lucivar7

New Member
Joined
Jul 21, 2014
Messages
14
Reaction score
0
Basically, the bot will furious charge all the mobs, but when 1 is left, or if i encounter a single mob by itself. My barb just sits there and auto attacks it (or uses frenzy if i have it equipped) until its dead. I'm wondering if there's a way to make the bot only use furious charge on mobs. Because it is the only damaging move in my build.
 
So I understand how to change those values, but the problem is furious charge doesn't have the same criteria as the examples he listed. In that case is it possible to somehow make up special criteria? IE, my furious charge right now is:

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

var bestTarget = TargetUtil.GetBestPierceTarget(35f);
int unitsInFrontOfBestTarget = 1;

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

return CanCast(SNOPower.Barbarian_FuriousCharge, CanCastFlags.NoTimer) &&
(unitsInFrontOfBestTarget >= 1 || CurrentTarget.HitPoints >= 100000000);





Can I add a line from his post to that? For example:
(iElitesWithinRange[RANGE_30] >= 1 || iAnythingWithinRange[RANGE_30] >= 1 || playerStatus.dCurrentHealthPct <= 1 || (targetCurrent.bThisEliteRareUnique && targetCurrent.fRadiusDistance <= 30f)) &

I tried messing around with it and didn't notice any changes.
 
return CanCast(SNOPower.Barbarian_FuriousCharge, CanCastFlags.NoTimer) &&
(unitsInFrontOfBestTarget >= 1 || CurrentTarget.HitPoints >= 100000000); < here
return CanCast(SNOPower.Barbarian_FuriousCharge, CanCastFlags.NoTimer) &&
(unitsInFrontOfBestTarget >= 0 || CurrentTarget.HitPoints >= 0);

this should work.
Cant test it myself cus I am at work atm. post results
 
Last edited:
Back
Top