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

Witchdoctor builds using haunt causes odd movement

precmv

New Member
Joined
Mar 27, 2014
Messages
6
Reaction score
0
I find that using WD builds where it needs to cast haunt as the primary skill, it wiggles back and forth like crazy, kind of like stutter stepping, to the point where it almost doesn't cast anything at all.

My WD is playing a support build http://www.diablofans.com/builds/69876-2-4-gr100-wd-support-group in a 4man bot group.
I basically just want it to go in melee range, stand still and cast shit, but it tends to stand at the edge of the action, doing this wiggling.

Any suggestions?
 
I tried changing the min range of haunt in WitchDoctorCombat.cs to 0, but it seems to have no impact.
 
It appears it keeps spamming walk commands. Here's a snippet from logs:
Code:
17:58:25.861 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="492" y="614" z="0" dist=20) Range=0 (Other Other) Delay=50/50 TargetDist=20,98505 CurrentTarget=TerrorDemon_A charges=0
17:58:25.931 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="528" y="614" z="0" dist=19) Range=0 (Other Other) Delay=50/50 TargetDist=19,71271 CurrentTarget=TerrorDemon_A charges=0
17:58:26.053 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="492" y="614" z="0" dist=20) Range=0 (Other Other) Delay=50/50 TargetDist=20,46308 CurrentTarget=TerrorDemon_A charges=0
17:58:26.112 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="532" y="614" z="0" dist=19) Range=0 (Other Other) Delay=50/50 TargetDist=19,53693 CurrentTarget=TerrorDemon_A charges=0
17:58:26.190 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="532" y="614" z="0" dist=19) Range=0 (Other Other) Delay=50/50 TargetDist=19,01496 CurrentTarget=TerrorDemon_A charges=0
17:58:26.253 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="492" y="614" z="0" dist=20) Range=0 (Other Other) Delay=50/50 TargetDist=20,98505 CurrentTarget=TerrorDemon_A charges=0
17:58:26.311 DEBUG TrinityDebug [Trinity 2.14.44] Target changed to 261545 // x1_WitherMoth_A (Unit) ShouldIgnore=False nearbyCount=2 radiusDistance=6 hotspot=False elitesInRange=False hitPointsPc=0,8 summoner=False quest=False minimap=False bounty=False Adding x1_WitherMoth_A by Default. dist=428,2 last=0,0 pack=0,0 health=0,4 path=0,0 reflect=0,0 elite=0,0 aoe=0,0 riftBoost=0,0 (riftValue=0,2)
17:58:26.322 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="532" y="614" z="0" dist=19) Range=0 (Other Other) Delay=50/50 TargetDist=19,01496 CurrentTarget=x1_WitherMoth_A charges=0
17:58:26.375 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="492" y="614" z="0" dist=20) Range=0 (Other Other) Delay=50/50 TargetDist=20,98505 CurrentTarget=x1_WitherMoth_A charges=0
17:58:26.496 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="532" y="614" z="0" dist=19) Range=0 (Other Other) Delay=50/50 TargetDist=19,01496 CurrentTarget=x1_WitherMoth_A charges=0
17:58:26.576 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="533" y="614" z="0" dist=19) Range=0 (Other Other) Delay=50/50 TargetDist=19,49298 CurrentTarget=x1_WitherMoth_A charges=0
17:58:26.715 DEBUG Logger [Trinity 2.14.44] Used Power Big Bad Voodoo (Witchdoctor_BigBadVoodoo) ) Range=0 (Other Other) Delay=50/50 TargetDist=0 CurrentTarget=x1_WitherMoth_A charges=0
17:58:26.967 DEBUG Logger [Trinity 2.14.44] Used Power Piranhas (Witchdoctor_Piranhas) at x="506" y="630" z="0" dist=20) Range=0 (Spender Other) Delay=50/50 TargetDist=20,31877 CurrentTarget=x1_WitherMoth_A charges=0
17:58:27.191 DEBUG TrinityDebug [Trinity 2.14.44] Target changed to 106714 // TerrorDemon_A (Unit) ShouldIgnore=False nearbyCount=0 radiusDistance=1 hotspot=False elitesInRange=False hitPointsPc=0,3 summoner=True quest=False minimap=False bounty=False Adding TerrorDemon_A default Elite  dist=492,9 last=0,0 pack=0,0 health=1,5 path=0,0 reflect=0,0 elite=0,0 aoe=0,0 riftBoost=0,0 (riftValue=1,0)
17:58:27.494 DEBUG Logger [Trinity 2.14.44] Used Power Haunt (Witchdoctor_Haunt)  on TerrorDemon_A (1641349543 Range=0 (Spender Other) Delay=50/50 TargetDist=17,44697 CurrentTarget=TerrorDemon_A charges=0
17:58:27.551 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="538" y="614" z="0" dist=19) Range=0 (Other Other) Delay=50/50 TargetDist=19,79523 CurrentTarget=TerrorDemon_A charges=0
17:58:27.608 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="498" y="614" z="0" dist=20) Range=0 (Other Other) Delay=50/50 TargetDist=20,20477 CurrentTarget=TerrorDemon_A charges=0
17:58:27.658 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="538" y="614" z="0" dist=19) Range=0 (Other Other) Delay=50/50 TargetDist=19,79523 CurrentTarget=TerrorDemon_A charges=0
17:58:27.791 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="539" y="614" z="0" dist=19) Range=0 (Other Other) Delay=50/50 TargetDist=19,22931 CurrentTarget=TerrorDemon_A charges=0
17:58:27.934 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="543" y="614" z="0" dist=19) Range=0 (Other Other) Delay=50/50 TargetDist=19,05353 CurrentTarget=TerrorDemon_A charges=0
17:58:28.005 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="503" y="614" z="0" dist=20) Range=0 (Other Other) Delay=50/50 TargetDist=20,94647 CurrentTarget=TerrorDemon_A charges=0
17:58:28.162 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="543" y="614" z="0" dist=19) Range=0 (Other Other) Delay=50/50 TargetDist=19,05353 CurrentTarget=TerrorDemon_A charges=0
17:58:28.235 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="503" y="614" z="0" dist=20) Range=0 (Other Other) Delay=50/50 TargetDist=20,4245 CurrentTarget=TerrorDemon_A charges=0
17:58:28.361 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="499" y="614" z="0" dist=20) Range=0 (Other Other) Delay=50/50 TargetDist=20,24872 CurrentTarget=TerrorDemon_A charges=0
17:58:28.495 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="535" y="614" z="0" dist=19) Range=0 (Other Other) Delay=50/50 TargetDist=19,92706 CurrentTarget=TerrorDemon_A charges=0
17:58:28.557 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="495" y="614" z="0" dist=20) Range=0 (Other Other) Delay=50/50 TargetDist=20,07294 CurrentTarget=TerrorDemon_A charges=0
17:58:28.608 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="535" y="614" z="0" dist=19) Range=0 (Other Other) Delay=50/50 TargetDist=19,40509 CurrentTarget=TerrorDemon_A charges=0
17:58:28.680 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="495" y="614" z="0" dist=20) Range=0 (Other Other) Delay=50/50 TargetDist=20,59491 CurrentTarget=TerrorDemon_A charges=0
17:58:28.805 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="535" y="614" z="0" dist=19) Range=0 (Other Other) Delay=50/50 TargetDist=19,40509 CurrentTarget=TerrorDemon_A charges=0
17:58:28.861 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="535" y="614" z="0" dist=19) Range=0 (Other Other) Delay=50/50 TargetDist=19,92706 CurrentTarget=TerrorDemon_A charges=0
17:58:28.979 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="538" y="614" z="0" dist=19) Range=0 (Other Other) Delay=50/50 TargetDist=19,27325 CurrentTarget=TerrorDemon_A charges=0
17:58:29.103 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="542" y="614" z="0" dist=19) Range=0 (Other Other) Delay=50/50 TargetDist=19,61945 CurrentTarget=TerrorDemon_A charges=0
17:58:29.162 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="502" y="614" z="0" dist=20) Range=0 (Other Other) Delay=50/50 TargetDist=20,38055 CurrentTarget=TerrorDemon_A charges=0
17:58:29.281 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="542" y="614" z="0" dist=19) Range=0 (Other Other) Delay=50/50 TargetDist=19,61945 CurrentTarget=TerrorDemon_A charges=0
17:58:29.341 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="502" y="614" z="0" dist=20) Range=0 (Other Other) Delay=50/50 TargetDist=20,90253 CurrentTarget=TerrorDemon_A charges=0
17:58:29.452 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="539" y="614" z="0" dist=19) Range=0 (Other Other) Delay=50/50 TargetDist=19,75128 CurrentTarget=TerrorDemon_A charges=0
17:58:29.572 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="542" y="614" z="0" dist=19) Range=0 (Other Other) Delay=50/50 TargetDist=19,09747 CurrentTarget=TerrorDemon_A charges=0
17:58:29.631 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="502" y="614" z="0" dist=20) Range=0 (Other Other) Delay=50/50 TargetDist=20,90253 CurrentTarget=TerrorDemon_A charges=0
17:58:29.686 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="542" y="614" z="0" dist=19) Range=0 (Other Other) Delay=50/50 TargetDist=19,61945 CurrentTarget=TerrorDemon_A charges=0
17:58:29.794 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="546" y="614" z="0" dist=19) Range=0 (Other Other) Delay=50/50 TargetDist=19,96564 CurrentTarget=TerrorDemon_A charges=0
17:58:29.911 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="509" y="614" z="0" dist=20) Range=0 (Other Other) Delay=50/50 TargetDist=20,1662 CurrentTarget=TerrorDemon_A charges=0
17:58:29.973 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="549" y="614" z="0" dist=19) Range=0 (Other Other) Delay=50/50 TargetDist=19,8338 CurrentTarget=TerrorDemon_A charges=0
17:58:30.027 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="548" y="614" z="0" dist=19) Range=0 (Other Other) Delay=50/50 TargetDist=19,35577 CurrentTarget=TerrorDemon_A charges=0
17:58:30.144 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="552" y="614" z="0" dist=19) Range=0 (Other Other) Delay=50/50 TargetDist=19,70197 CurrentTarget=TerrorDemon_A charges=0
17:58:30.288 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="556" y="614" z="0" dist=19) Range=0 (Other Other) Delay=50/50 TargetDist=19,00421 CurrentTarget=TerrorDemon_A charges=0
17:58:30.362 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="516" y="614" z="0" dist=20) Range=0 (Other Other) Delay=50/50 TargetDist=20,99579 CurrentTarget=TerrorDemon_A charges=0
17:58:30.570 DEBUG Logger [Trinity 2.14.44] Used Power Big Bad Voodoo (Witchdoctor_BigBadVoodoo) ) Range=0 (Other Other) Delay=50/50 TargetDist=0 CurrentTarget=TerrorDemon_A charges=0
17:58:30.755 DEBUG Logger [Trinity 2.14.44] Used Power Hex (Witchdoctor_Hex) ) Range=0 (Other Other) Delay=50/50 TargetDist=0 CurrentTarget=TerrorDemon_A charges=0
17:58:30.877 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="512" y="614" z="0" dist=20) Range=0 (Other Other) Delay=50/50 TargetDist=20,82001 CurrentTarget=TerrorDemon_A charges=0
17:58:31.007 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="552" y="614" z="0" dist=19) Range=0 (Other Other) Delay=50/50 TargetDist=19,17999 CurrentTarget=TerrorDemon_A charges=0
17:58:31.130 DEBUG Logger [Trinity 2.14.44] Used Power Piranhas (Witchdoctor_Piranhas) at x="533" y="597" z="0" dist=16) Range=0 (Spender Other) Delay=50/50 TargetDist=16,54482 CurrentTarget=TerrorDemon_A charges=0
17:58:31.328 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="512" y="614" z="0" dist=20) Range=0 (Other Other) Delay=50/50 TargetDist=20,82001 CurrentTarget=TerrorDemon_A charges=0
17:58:31.438 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="509" y="614" z="0" dist=20) Range=0 (Other Other) Delay=50/50 TargetDist=20,1662 CurrentTarget=TerrorDemon_A charges=0
17:58:31.501 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="549" y="614" z="0" dist=19) Range=0 (Other Other) Delay=50/50 TargetDist=19,8338 CurrentTarget=TerrorDemon_A charges=0
17:58:31.552 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="514" y="614" z="0" dist=20) Range=0 (Other Other) Delay=50/50 TargetDist=20,38593 CurrentTarget=TerrorDemon_A charges=0
17:58:31.677 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="551" y="614" z="0" dist=19) Range=0 (Other Other) Delay=50/50 TargetDist=19,74591 CurrentTarget=TerrorDemon_A charges=0
17:58:31.799 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="554" y="614" z="0" dist=19) Range=0 (Other Other) Delay=50/50 TargetDist=19,0921 CurrentTarget=TerrorDemon_A charges=0
17:58:31.919 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="559" y="614" z="0" dist=19) Range=0 (Other Other) Delay=50/50 TargetDist=19,91632 CurrentTarget=TerrorDemon_A charges=0
17:58:32.038 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="522" y="614" z="0" dist=20) Range=0 (Other Other) Delay=50/50 TargetDist=20,73749 CurrentTarget=TerrorDemon_A charges=0
17:58:32.154 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="559" y="614" z="0" dist=19) Range=0 (Other Other) Delay=50/50 TargetDist=19,91632 CurrentTarget=TerrorDemon_A charges=0
17:58:32.209 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="519" y="614" z="0" dist=20) Range=0 (Other Other) Delay=50/50 TargetDist=20,08368 CurrentTarget=TerrorDemon_A charges=0
17:58:32.272 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="558" y="614" z="0" dist=19) Range=0 (Other Other) Delay=50/50 TargetDist=19,43829 CurrentTarget=TerrorDemon_A charges=0
17:58:32.390 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="522" y="614" z="0" dist=20) Range=0 (Other Other) Delay=50/50 TargetDist=20,21552 CurrentTarget=TerrorDemon_A charges=0
17:58:32.445 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="562" y="614" z="0" dist=19) Range=0 (Other Other) Delay=50/50 TargetDist=19,78448 CurrentTarget=TerrorDemon_A charges=0
17:58:32.516 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="562" y="614" z="0" dist=19) Range=0 (Other Other) Delay=50/50 TargetDist=19,26251 CurrentTarget=TerrorDemon_A charges=0
17:58:32.649 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="566" y="614" z="1" dist=19) Range=0 (Other Other) Delay=50/50 TargetDist=19,08673 CurrentTarget=TerrorDemon_A charges=0
17:58:32.716 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="526" y="614" z="1" dist=20) Range=0 (Other Other) Delay=50/50 TargetDist=20,91327 CurrentTarget=TerrorDemon_A charges=0
17:58:32.776 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="526" y="615" z="0" dist=20) Range=0 (Other Other) Delay=50/50 TargetDist=20,30918 CurrentTarget=TerrorDemon_A charges=0
17:58:32.844 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="566" y="615" z="0" dist=19) Range=0 (Other Other) Delay=50/50 TargetDist=19,69659 CurrentTarget=TerrorDemon_A charges=0
17:58:32.898 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="526" y="615" z="0" dist=20) Range=0 (Other Other) Delay=50/50 TargetDist=20,3082 CurrentTarget=TerrorDemon_A charges=0
17:58:32.967 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="566" y="615" z="0" dist=19) Range=0 (Other Other) Delay=50/50 TargetDist=19,69559 CurrentTarget=TerrorDemon_A charges=0
17:58:33.037 DEBUG TrinityDebug [Trinity 2.14.44] Target changed to 310888 // x1_SkeletonArcher_Westmarch_Ghost_A (Unit) ShouldIgnore=False nearbyCount=4 radiusDistance=28 hotspot=False elitesInRange=False hitPointsPc=0,6 summoner=False quest=False minimap=False bounty=False Adding x1_SkeletonArcher_Westmarch_Ghost_A by Default. dist=154,7 last=0,0 pack=0,0 health=0,9 path=0,0 reflect=0,0 elite=0,0 aoe=0,0 riftBoost=0,0 (riftValue=0,0)
17:58:33.541 DEBUG TrinityDebug [Trinity 2.14.44] Target changed to 401751 // p1_tiered_rifts_Orb (ProgressionGlobe) Maxxing p1_tiered_rifts_Orb - Progression Globe.
17:58:34.360 DEBUG TrinityDebug [Trinity 2.14.44] Target changed to 261545 // x1_WitherMoth_A (Unit) ShouldIgnore=False nearbyCount=1 radiusDistance=23 hotspot=False elitesInRange=False hitPointsPc=0,6 summoner=False quest=False minimap=False bounty=False Adding x1_WitherMoth_A by Default. dist=216,6 last=0,0 pack=0,0 health=0,8 path=0,0 reflect=0,0 elite=0,0 aoe=0,0 riftBoost=0,0 (riftValue=0,2)
17:58:34.933 DEBUG Logger [Trinity 2.14.44] Used Power Haunt (Witchdoctor_Haunt)  on  (1686176073 Range=0 (Spender Other) Delay=50/50 TargetDist=16,6508 CurrentTarget=x1_WitherMoth_A charges=0
17:58:35.183 DEBUG Logger [Trinity 2.14.44] Used Power Big Bad Voodoo (Witchdoctor_BigBadVoodoo) ) Range=0 (Other Other) Delay=50/50 TargetDist=0 CurrentTarget=x1_WitherMoth_A charges=0
17:58:35.753 DEBUG Logger [Trinity 2.14.44] Used Power Haunt (Witchdoctor_Haunt)  on x1_WitherMoth_A (1631125850 Range=0 (Spender Other) Delay=50/50 TargetDist=15,53318 CurrentTarget=x1_WitherMoth_A charges=0
17:58:35.802 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="536" y="617" z="0" dist=19) Range=0 (Other Other) Delay=50/50 TargetDist=19,1465 CurrentTarget=x1_WitherMoth_A charges=0
17:58:35.881 DEBUG Logger [Trinity 2.14.44] Used Power  (Walk) at x="496" y="617" z="0" dist=20) Range=0 (Other Other) Delay=50/50 TargetDist=20,88337 CurrentTarget=x1_WitherMoth_A charges=0

Which I can see does not happen for my wizard for example...
I'm not familiar with the Trinity source code yet, but I'll try to see if I can figure out why this is happening.
 
I think I found out what is going on.
This may be because the build is unsupported, but I saw the same thing with Jade Harvester, which is supported. From what I can see from the code, it only wants to cast Haunt on targets that do not have the debuff, in the jade harvester build, which I actually believe is wrong, because in the JH set, you do dmg by casting haunt on the same target multiple times.

The code causing it to walk around all the time is this:
Code:
            // Default Attacks
            if (IsNull(power))
            {
                // Never use Melee (e.g. Range < 15f), only ranged attacks
                var position = StuckHandler.RandomShuffle(StuckHandler.GetCirclePoints(2, 20f, Player.Position)).FirstOrDefault();
                if (CurrentTarget != null)
                    power = new TrinityPower(SNOPower.Walk, 20f, position);
            }

Which seems to be a last resort/fallback action.
The reason it ends up here appears to be this:
Code:
                // Haunt 
                if (CanCast(SNOPower.Witchdoctor_Haunt) &&
                    Player.PrimaryResource >= 50) &&
                    !SpellTracker.IsUnitTracked(CurrentTarget, SNOPower.Witchdoctor_Haunt) &&
                    LastPowerUsed != SNOPower.Witchdoctor_Haunt)
                {
                    return new TrinityPower(SNOPower.Witchdoctor_Haunt, 5f, CurrentTarget.ACDGuid);
                }

Which appears to mean it only wants to cast haunt if it has not already cast it on the target, and the last used power wasn't haunt.
I've commented out the last bit of logic concerning haunt, and now it seems to behave the way I expect.

So while this mostly applied to this support build I'm running, I also believe there's an issue with the Jade Harvester set.
I hope it can help the devs out.
 
Hey, your build is currently unsupported, yes. It seems to be one of those builds that constantly runs out of things to cast. In these cases trinity will default to walking around so as to avoid going into melee range and getting the WD's killed. Jade Doc will default to the same behavior, however it will in fact default to Haunt, debuff or not, before resorting to walk. Sure, it looks for non debuffed mobs first, but when all of them are haunted, it'll just pick one and spam haunt on it.
 
Yea I realized what you're saying about it casting haunt by default in the jade spec, after looking at the code a bit more. I did however see the same kind of wiggling around when in the JH build. So I think there may be something there to look into.
 
Like I said, it defaults to walk when it can't cast haunt. That's not a bug, it's intended behavior.
 
I think I found out what is going on.
This may be because the build is unsupported, but I saw the same thing with Jade Harvester, which is supported. From what I can see from the code, it only wants to cast Haunt on targets that do not have the debuff, in the jade harvester build, which I actually believe is wrong, because in the JH set, you do dmg by casting haunt on the same target multiple times.

The code causing it to walk around all the time is this:
Code:
            // Default Attacks
            if (IsNull(power))
            {
                // Never use Melee (e.g. Range < 15f), only ranged attacks
                var position = StuckHandler.RandomShuffle(StuckHandler.GetCirclePoints(2, 20f, Player.Position)).FirstOrDefault();
                if (CurrentTarget != null)
                    power = new TrinityPower(SNOPower.Walk, 20f, position);
            }

Which seems to be a last resort/fallback action.
The reason it ends up here appears to be this:
Code:
                // Haunt 
                if (CanCast(SNOPower.Witchdoctor_Haunt) &&
                    Player.PrimaryResource >= 50) &&
                    !SpellTracker.IsUnitTracked(CurrentTarget, SNOPower.Witchdoctor_Haunt) &&
                    LastPowerUsed != SNOPower.Witchdoctor_Haunt)
                {
                    return new TrinityPower(SNOPower.Witchdoctor_Haunt, 5f, CurrentTarget.ACDGuid);
                }

Which appears to mean it only wants to cast haunt if it has not already cast it on the target, and the last used power wasn't haunt.
I've commented out the last bit of logic concerning haunt, and now it seems to behave the way I expect.

So while this mostly applied to this support build I'm running, I also believe there's an issue with the Jade Harvester set.
I hope it can help the devs out.


Thanks but how do we fix it ? (For Harvester)
 
How do you :

"I've commented out the last bit of logic concerning haunt, and now it seems to behave the way I expect."

No idea what line to comment and how to do it, i'm shit with codes.

Edit : Should it become

Code:
                // Haunt 
               // if (CanCast(SNOPower.Witchdoctor_Haunt) &&
               //     Player.PrimaryResource >= 50) &&
               //      !SpellTracker.IsUnitTracked(CurrentTarget, SNOPower.Witchdoctor_Haunt) &&
               //      LastPowerUsed != SNOPower.Witchdoctor_Haunt)
              //   {
              //       return new TrinityPower(SNOPower.Witchdoctor_Haunt, 5f, CurrentTarget.ACDGuid);
              //   }

??
 
Last edited:
How do you :

"I've commented out the last bit of logic concerning haunt, and now it seems to behave the way I expect."

No idea what line to comment and how to do it, i'm shit with codes.

Code:
                // Haunt 
                if (CanCast(SNOPower.Witchdoctor_Haunt) &&
                    Player.PrimaryResource >= 50)) // &&
                //      !SpellTracker.IsUnitTracked(CurrentTarget, SNOPower.Witchdoctor_Haunt) &&
                //      LastPowerUsed != SNOPower.Witchdoctor_Haunt)
                 {
                     return new TrinityPower(SNOPower.Witchdoctor_Haunt, 5f, CurrentTarget.ACDGuid);
                 }

But I wouldn't recommend changing anything to be non-standard unless you understand what is going on.
 
Back
Top