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

Witch Doctor (Jade) Spamming Melee attack

i think there's a setting for haunt, or similar that says mininum number of mobs to harvest or cluster? maybe i am wrong but that is what you would want, like change/make a setting that says only cast harvest when x amount mobs are in say 2m range (make it small range cuz you want to be surrounded or in the thick of things, it may help but idk, even though i agree this isnt optimal right now i am still cruising through t7 on mine and i have the full build, it never dies, and murders everything so i'm happy for now

Yeah, the build is still murdering, but only because of general power scaling.

With profile tweaks the bot could be a LOT more effective.
 
Hi,
I just edited the WitchDoctorCombat File a little bit
before edit:
// Haunt
//if (Skills.WitchDoctor.Haunt.CanCast() && Player.PrimaryResource >= 50 && !CurrentTarget.HasDebuff(SNOPower.Witchdoctor_Haunt))
if (Skills.WitchDoctor.Haunt.CanCast() && Player.PrimaryResource >= 50)
{
return new TrinityPower(SNOPower.Witchdoctor_Haunt, 45f, CurrentTarget.ACDGuid);
}

//if (!CurrentTarget.IsTreasureGoblin && CurrentTarget.HasDebuff(SNOPower.Witchdoctor_Locust_Swarm) &&
// CurrentTarget.HasDebuff(SNOPower.Witchdoctor_Haunt) && Player.PrimaryResource >= 350 &&
// Enemies.Nearby.DebuffedPercent(HarvesterCoreDebuffs) > 0.5)
//{
// return new TrinityPower(SNOPower.Witchdoctor_Haunt, 45f, CurrentTarget.ACDGuid);
//}

//// Save mana for locust swarm || piranhas
//if (!CurrentTarget.HasDebuff(SNOPower.Witchdoctor_Locust_Swarm) && Player.PrimaryResource < 300)
//{
// //Logger.LogNormal("Saving mana");
// return DefaultPower;
//}

}

// END Jade Harvester -----------------------------------------------------------------------

just deleted some lines:
// Haunt
//if (Skills.WitchDoctor.Haunt.CanCast() && Player.PrimaryResource >= 50 )
if (Skills.WitchDoctor.Haunt.CanCast() && Player.PrimaryResource >= 50)
{

}

//if (!CurrentTarget.IsTreasureGoblin && CurrentTarget.HasDebuff(SNOPower.Witchdoctor_Locust_Swarm) &&
// CurrentTarget.HasDebuff(SNOPower.Witchdoctor_Haunt) && Player.PrimaryResource >= 350 &&
// Enemies.Nearby.DebuffedPercent(HarvesterCoreDebuffs) > 0.5)
//{
//
//}

//// Save mana for locust swarm || piranhas
//if (!CurrentTarget.HasDebuff(SNOPower.Witchdoctor_Locust_Swarm) && Player.PrimaryResource < 100)
//{
// //Logger.LogNormal("Saving mana");
// return DefaultPower;
//}

}

// END Jade Harvester -----------------------------------------------------------------------
Now it seems the Bot will spam Haunt, my Xp/H is now 3time higher then before.
 
Hi,
I just edited the WitchDoctorCombat File a little bit
before edit:

just deleted some lines:

Now it seems the Bot will spam Haunt, my Xp/H is now 3time higher then before.

didnt work for me, bot will still melee.
i managed to make it spam haunt correctly removing the "cancast" part and leaving only the resource part, but it'll prefer to use haunt over all other spells.

tried a bunch of combinations but couldnt make it cast all other spells and only then spam haunt correctly. guess i'll wait for an official fix.
 
private static readonly HashSet<SNOPower> HarvesterDebuffs = new HashSet<SNOPower>
{
SNOPower.Witchdoctor_Haunt,
SNOPower.Witchdoctor_Locust_Swarm,
SNOPower.Witchdoctor_Locust_Swarm,
SNOPower.Witchdoctor_Piranhas,
SNOPower.Witchdoctor_AcidCloud
};

I'm trying to debug this code. Is there a reason Locust Swarm is listed twice as a Debuff?
 
if (CanCast(SNOPower.Witchdoctor_Haunt) &&
Player.PrimaryResource >= 50 &&
!SpellTracker.IsUnitTracked(CurrentTarget, SNOPower.Witchdoctor_Haunt) &&
LastPowerUsed != SNOPower.Witchdoctor_Haunt)
{
return new TrinityPower(SNOPower.Witchdoctor_Haunt, 21f, CurrentTarget.ACDGuid);
}

Is this the error?

LastPowerUsed != SNOPower.Witchdoctor_Haunt)

Don't cast haunt if we just cast it.

We want to spam it, so this would be preventing that? I am at work so I cannot run the bot to check.
 
I think I fixed Jade doc now. I played around a bit with this version and it seemed fine to me. Spams haunt, casts soul harvest aplenty, rarely ever runs out of mana and if it does the bot walks around instead of melee attacking. It's gonna be in the next official version, but I decided you guys get to have it first :).
 

Attachments

I think I fixed Jade doc now. I played around a bit with this version and it seemed fine to me. Spams haunt, casts soul harvest aplenty, rarely ever runs out of mana and if it does the bot walks around instead of melee attacking. It's gonna be in the next official version, but I decided you guys get to have it first :).

Can you document what you changed to get it working? I'm super curious so I can help down the road.
 
Can you document what you changed to get it working? I'm super curious so I can help down the road.
Sure. I did two things:

1. the haunt spam code was commented out because xzjv got confused (xz, if you're reading this, you're still awesome), so I put it back in and
2. WitchDoctorCombat.cs was defaulting to WD's default attack, which is melee. What I did was get rid of that and make it default to SNOPower.Walk

Everything else already had good code for it, so it was just a matter of getting these two things right.
 
Sorry to say sir, but no change for me. Same as before. he just runs around a lot more now and melees.
You did something wrong I'm afraid. I know that because it can't be meleeing because it can no longer melee attack. I removed melee attack from the code, it's impossible for trinity to cast it now unless it wants to break a door or something.

That, of course, assuming you're talking about the old default melee attack. If you mean 'getting close to mobs' then that's a requirement of the build.
 
Back
Top