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

Barbarian combat.cs COTA

hsjyes

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

For the life of me I cant get the bot to cast COTA only for elites.

Anyone able to post the script for this?

Thanks
 
I'm thinking about it, it would be great if someone skilled would say how to edit barbariancombat.cs so it would activate COTA on the same conditions as WOTB.
 
Code:
public static bool CanUseCallOfTheAncients
        {
            get
            {
                return
                    !IsCurrentlyAvoiding &&
                    CanCast(SNOPower.Barbarian_CallOfTheAncients) &&
                    !Player.IsIncapacitated &&
                    (Sets.ImmortalKingsCall.IsFullyEquipped ||
                    GetHasBuff(SNOPower.Pages_Buff_Infinite_Casting) || // Chaneling Pylon
                    GetHasBuff(SNOPower.Shrine_Desecrated_Reloaded) || // Empowred Shrine
                    TargetUtil.AnyElitesInRange(30));
            }
        }

This is my conditions that i use myself. You may want to delete GetHasBuff(SNOPower.Shrine_Desecrated_Reloaded) if you have low CDR value and not using Boon of the Bul-Khatos passive.

Code:
public static bool CanUseWrathOfTheBerserker
        {
            get
            {
                return
                    !IsCurrentlyAvoiding &&
                    CanCast(SNOPower.Barbarian_WrathOfTheBerserker) &&
                    (GetHasBuff(SNOPower.Pages_Buff_Infinite_Casting) || // Chaneling Pylon
                    GetHasBuff(SNOPower.Shrine_Desecrated_Reloaded) || // Empowered Shrine
                    TargetUtil.AnyElitesInRange(30));
            }
        }

This is for WoTB.

And also comment this part of code like i did:

Code:
// Check if we should conserve Fury for specials
            if (IsNull(power) && Player.PrimaryResource < MinEnergyReserve)
            {
                //if (ShouldWaitForCallOfTheAncients)
                //{
                //    //Logger.LogNormal("Waiting for Barbarian_CallOfTheAncients!");
                //    IsWaitingForSpecial = true;
                //}
                //if (ShouldWaitForWrathOfTheBerserker)
                //{
                //    //Logger.LogNormal("Waiting for Barbarian_WrathOfTheBerserker 1!");
                //    IsWaitingForSpecial = true;
                //}
                if (ShouldWaitForEarthquake)
                {
                    //Logger.LogNormal("Waiting for Barbarian_Earthquake!");
                    IsWaitingForSpecial = true;
                }
            }

WoTB and CoTA don't have wrath cost ;)

Cheers!
 
Last edited:
Back
Top