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

Call of the Ancients needs tweaked for IK

kgbc

Member
Joined
Mar 21, 2012
Messages
49
Reaction score
0
Call of the ancients should not be recast if they are already active, for those with the Immortal Kings bonus. Would also be nice if they were cast as soon as the game started so it gets it on cooldown.
 
yes, this would be great!

would be also nice if the bot could cast cota at the beginning of the game if the bonus is active.
 
The problem with this is if 1 or 2 Ancients die you still have the buff and the bot wouldn't recast.

I don't see a problem with how it works now except for if you die
 
I think that if the bot registers that you have 4 piece IK then it should immediately cast COTA when you start the game, then whenever 1 of the COTA dies it should refresh it immediately. The way it works now is if there is an elite pack then it will cast COTA regardless if they are already out or not, if your COTA was at 3 guys then it is pointless to recast it. So for instance, if let's say you are on T4+ and you happen to die, when you rez your COTA is going to probably be on CD because the way the bot uses it currently.
 
At the moment Call of the Ancients is being cast once off cooldown, so this is not great for those without Immortal King's set either.

It would be good to be cast on Elites/Bosses only.
 
I think that if the bot registers that you have 4 piece IK then it should immediately cast COTA when you start the game, then whenever 1 of the COTA dies it should refresh it immediately. The way it works now is if there is an elite pack then it will cast COTA regardless if they are already out or not, if your COTA was at 3 guys then it is pointless to recast it. So for instance, if let's say you are on T4+ and you happen to die, when you rez your COTA is going to probably be on CD because the way the bot uses it currently.

I may look at this when I get home and give you the code to change to make this occur.
 
That would be fantastic! Thanks!

Change the functions in Barbarian.cs to look like below. Seems to be working for me. Will not cast in town but will cast at first mobs at least.


Code:
        public static bool ShouldWaitForCallOfTheAncients
        {
            get
            {
                return
                    Hotbar.Contains(SNOPower.Barbarian_CallOfTheAncients) &&
                    !UseOOCBuff &&
                    !IsCurrentlyAvoiding &&
                    !CanCast(SNOPower.Barbarian_CallOfTheAncients) &&
                    !GetHasBuff(SNOPower.Barbarian_CallOfTheAncients);
            }
        }
        public static bool CanCastCallOfTheAncients
        {
            get
            {
                return
                    !UseOOCBuff &&
                    !IsCurrentlyAvoiding &&
                    CanCast(SNOPower.Barbarian_CallOfTheAncients) &&
                    !Player.IsIncapacitated && !GetHasBuff(SNOPower.Barbarian_CallOfTheAncients);
            }
        }
 
To make it so it only recast if you don't have the buff active all you need to do is:

Find this block:

Code:
public static bool CanCastCallOfTheAncients

And add this line:

Code:
!GetHasBuff(SNOPower.Barbarian_CallOfTheAncients);
 
Change the functions in Barbarian.cs to look like below. Seems to be working for me. Will not cast in town but will cast at first mobs at least.


Code:
        public static bool ShouldWaitForCallOfTheAncients
        {
            get
            {
                return
                    Hotbar.Contains(SNOPower.Barbarian_CallOfTheAncients) &&
                    !UseOOCBuff &&
                    !IsCurrentlyAvoiding &&
                    !CanCast(SNOPower.Barbarian_CallOfTheAncients) &&
                    !GetHasBuff(SNOPower.Barbarian_CallOfTheAncients);
            }
        }
        public static bool CanCastCallOfTheAncients
        {
            get
            {
                return
                    !UseOOCBuff &&
                    !IsCurrentlyAvoiding &&
                    CanCast(SNOPower.Barbarian_CallOfTheAncients) &&
                    !Player.IsIncapacitated && !GetHasBuff(SNOPower.Barbarian_CallOfTheAncients);
            }
        }

Sweet, thank you so much!
 
Is it possible to cast COTA when you log in a game instead of waiting for combat?
Anyone knows a barbarian code to do that?
Cause it's more safe when you are running HC T1+

ty
 
Code:
        public static bool CanUseCallOfTheAncients
        {
            get
            {
                return
                    !IsCurrentlyAvoiding &&
                    CanCast(SNOPower.Barbarian_CallOfTheAncients) &&
                    !Player.IsIncapacitated && !GetHasBuff(SNOPower.Barbarian_CallOfTheAncients);
            }
        }

its CanUseCallOfTheAncients instead of CanCastCallOfTheAncients now. just past it over the old CanUseCallOfTheAncients.
 
Last edited:
Back
Top