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

DemonHunter: Bot not using multishots very often, prefers to use generator instead.

1029384756

New Member
Joined
Apr 17, 2014
Messages
10
Reaction score
0
How do I fix this? I've been trying to find a solution for quite some time now, so I just decided to post and see if anyone could help me out. Against a boss, the bot will just use Evasive Fire instead of Multishot, while sitting on full hatred. Also does this for packs occasionally. It will sometimes cast multishot but not very often. I really can't even figure out the conditions for the bot to cast multishot, it's seemingly random.

Any help?
 
In DBFolder\Plugins\Trinity\Combat\Abilities\Demonhuntercombat.cs, try changing

Code:
private static bool MultiShotCondition(SkillMeta meta)
        {
            meta.CastFlags = CanCastFlags.NoPowerManager;
            meta.TargetUnitSelector = ret => TargetUtil.GetClosestUnit();


            // Natalyas - Wait for damage buff
            if (Sets.NatalyasVengeance.IsFullyEquipped && Player.PrimaryResource < 100 && !CacheData.Buffs.HasBuff(SNOPower.P2_ItemPassive_Unique_Ring_053))
                return false;

            if (Sets.UnhallowedEssence.IsMaxBonusActive && TargetUtil.AnyMobsInRange(80f) || TargetUtil.ClusterExists([COLOR="#FF0000"]45, 3[/COLOR]))
                return true;
            
            return false;
        }

to

Code:
private static bool MultiShotCondition(SkillMeta meta)
        {
            meta.CastFlags = CanCastFlags.NoPowerManager;
            meta.TargetUnitSelector = ret => TargetUtil.GetClosestUnit();


            // Natalyas - Wait for damage buff
            if (Sets.NatalyasVengeance.IsFullyEquipped && Player.PrimaryResource < 100 && !CacheData.Buffs.HasBuff(SNOPower.P2_ItemPassive_Unique_Ring_053))
                return false;

            if (Sets.UnhallowedEssence.IsMaxBonusActive && TargetUtil.AnyMobsInRange(80f) || TargetUtil.ClusterExists([COLOR="#FF0000"]45, 1[/COLOR]))
                return true;
            
            return false;
        }

Let us know how it turns out.
 
In DBFolder\Plugins\Trinity\Combat\Abilities\Demonhuntercombat.cs, try changing

Code:
private static bool MultiShotCondition(SkillMeta meta)
        {
            meta.CastFlags = CanCastFlags.NoPowerManager;
            meta.TargetUnitSelector = ret => TargetUtil.GetClosestUnit();


            // Natalyas - Wait for damage buff
            if (Sets.NatalyasVengeance.IsFullyEquipped && Player.PrimaryResource < 100 && !CacheData.Buffs.HasBuff(SNOPower.P2_ItemPassive_Unique_Ring_053))
                return false;

            if (Sets.UnhallowedEssence.IsMaxBonusActive && TargetUtil.AnyMobsInRange(80f) || TargetUtil.ClusterExists([COLOR="#FF0000"]45, 3[/COLOR]))
                return true;
            
            return false;
        }

to

Code:
private static bool MultiShotCondition(SkillMeta meta)
        {
            meta.CastFlags = CanCastFlags.NoPowerManager;
            meta.TargetUnitSelector = ret => TargetUtil.GetClosestUnit();


            // Natalyas - Wait for damage buff
            if (Sets.NatalyasVengeance.IsFullyEquipped && Player.PrimaryResource < 100 && !CacheData.Buffs.HasBuff(SNOPower.P2_ItemPassive_Unique_Ring_053))
                return false;

            if (Sets.UnhallowedEssence.IsMaxBonusActive && TargetUtil.AnyMobsInRange(80f) || TargetUtil.ClusterExists([COLOR="#FF0000"]45, 1[/COLOR]))
                return true;
            
            return false;
        }

Let us know how it turns out.


Hi there!

Jeez do I feel stupid. The whole time I wasn't looking in the main combat folder, I was looking in the settings/combat folder. Your fix worked, thanks so much!


EDIT: Unfortunately, just watched a boss kill. It still spams Evasive Fire over Multishot when fighting a rift boss. Not sure how to fix that :( But clearing is a lot faster at least! :D

EDIT2: Just watched another boss kill, the bot seemed to use both evasive fire and multishot at random times, even though hatred was max.
 
Last edited:
Could you watch it and figure out when exactly it's doing that?
The bot will cast multishot if your UE dmg % set bonus is active from not having any enemies in range for 5 seconds. That might be the reason (since I notice my DH just stands pretty much next to the RG the entire fight :p)

If missing the set bonus on the RG turns out to be the issue, you can always try making the adjustments below and see how that turns out.

Change
Code:
private static bool MultiShotCondition(SkillMeta meta)
        {
            meta.CastFlags = CanCastFlags.NoPowerManager;
            meta.TargetUnitSelector = ret => TargetUtil.GetClosestUnit();


            // Natalyas - Wait for damage buff
            if (Sets.NatalyasVengeance.IsFullyEquipped && Player.PrimaryResource < 100 && !CacheData.Buffs.HasBuff(SNOPower.P2_ItemPassive_Unique_Ring_053))
                return false;

            if [COLOR="#FF0000"](Sets.UnhallowedEssence.IsMaxBonusActive && TargetUtil.AnyMobsInRange(80f)[/COLOR] || TargetUtil.ClusterExists(45, 1))
                return true;
            
            return false;
        }

into

Code:
private static bool MultiShotCondition(SkillMeta meta)
        {
            meta.CastFlags = CanCastFlags.NoPowerManager;
            meta.TargetUnitSelector = ret => TargetUtil.GetClosestUnit();


            // Natalyas - Wait for damage buff
            if (Sets.NatalyasVengeance.IsFullyEquipped && Player.PrimaryResource < 100 && !CacheData.Buffs.HasBuff(SNOPower.P2_ItemPassive_Unique_Ring_053))
                return false;

            if [COLOR="#FF0000"](TargetUtil.AnyMobsInRange(80f)[/COLOR] || TargetUtil.ClusterExists(45, 1))
                return true;
            
            return false;
        }
 
Last edited:
Could you watch it and figure out when exactly it's doing that?
The bot will cast multishot if your UE dmg % set bonus is active from not having any enemies in range for 5 seconds. That might be the reason (since I notice my DH just stands pretty much next to the RG the entire fight :p)

If missing the set bonus on the RG turns out to be the issue, you can always try making the adjustments below and see how that turns out.

CODE

Hi Nab! Your change worked, then I get 6 piece UE right after, so I'm back to the old code again, :P

Thank you for all your help! I really really appreciate it!
 
No worries brother.

Any fix on the kiting for the multishot build so the DH doesn't try to fight a RG meele style? I can do GR 58-60 manual and the bot can't even complete 45 without dying.
 
Any fix on the kiting for the multishot build so the DH doesn't try to fight a RG meele style? I can do GR 58-60 manual and the bot can't even complete 45 without dying.

strange, my UE dh kites like a champ and doin GR50s no prob.

Can you post a log with verbose level DB logging + trinity log categories behavior, targetting, avoidance, movement system. and also a screenshot of your MISC and DH combat settings panels would help.

Thanks.
 
strange, my UE dh kites like a champ and doin GR50s no prob.

Can you post a log with verbose level DB logging + trinity log categories behavior, targetting, avoidance, movement system. and also a screenshot of your MISC and DH combat settings panels would help.

Thanks.

How do I get the logs you asked for?
I've attached the latest log from Demonbuddy/Logs/

These are my trinity settings:
http://puu.sh/kn7eF/95772413d8.png
http://puu.sh/kn7fu/888fbb6814.png
http://puu.sh/kn7gs/381aa54f6b.png
http://puu.sh/kn7hm/22158dfad1.png
http://puu.sh/kn7ie/0acfc7d6c9.png
http://puu.sh/kn7iN/1d7b25a329.png

Please help me get better settings so I can do higher GR, I'd REALLY appreciate it
 

Attachments

Back
Top