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!
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);
}
}
public static bool CanCastCallOfTheAncients
!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); } }
public static bool CanUseCallOfTheAncients
{
get
{
return
!IsCurrentlyAvoiding &&
CanCast(SNOPower.Barbarian_CallOfTheAncients) &&
!Player.IsIncapacitated && !GetHasBuff(SNOPower.Barbarian_CallOfTheAncients);
}
}