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

WD Fetish army cast in city ( solution )

EasyProger

New Member
Joined
Dec 15, 2012
Messages
62
Reaction score
0
Hi ) i have set Zuni and im play on Hardcore !
if my bot disconected before i cast fetish i can die, and i create simple solution

go to Plugins->Trinity->Combat->Abilities->WitchDoctorCombat.cs

and write simple code
Code:
if (CanCast(SNOPower.Witchdoctor_FetishArmy))
                {
                    return new TrinityPower(SNOPower.Witchdoctor_FetishArmy);
                }

into
Code:
// Buffs
            if (UseOOCBuff)
            {
...

after change code look like this
Code:
 // Buffs
            if (UseOOCBuff)
            {
                // Spirit Walk OOC 
                if (CanCast(SNOPower.Witchdoctor_SpiritWalk) && Settings.Combat.Misc.AllowOOCMovement)
                {
                    return new TrinityPower(SNOPower.Witchdoctor_SpiritWalk);
                }

                bool hasStalker = HotbarSkills.AssignedSkills.Any(s => s.Power == SNOPower.Witchdoctor_Horrify && s.RuneIndex == 4);
                // Horrify Buff When not in combat for movement speed -- Stalker
                if (CanCast(SNOPower.Witchdoctor_Horrify) && hasStalker)
                {
                    return new TrinityPower(SNOPower.Witchdoctor_Horrify);
                }

                if (CanCast(SNOPower.Witchdoctor_FetishArmy))
                {
                    return new TrinityPower(SNOPower.Witchdoctor_FetishArmy);
                }

                // Zombie Dogs non-sacrifice build
                if (CanCast(SNOPower.Witchdoctor_SummonZombieDog) && Trinity.PlayerOwnedZombieDogCount <= 2)
                {
                    return new TrinityPower(SNOPower.Witchdoctor_SummonZombieDog);
                }


                bool hasRestlessGiant = HotbarSkills.AssignedSkills.Any(s => s.Power == SNOPower.Witchdoctor_Gargantuan && s.RuneIndex == 0);
                bool hasWrathfulProtector = HotbarSkills.AssignedSkills.Any(s => s.Power == SNOPower.Witchdoctor_Gargantuan && s.RuneIndex == 3);

                if (CanCast(SNOPower.Witchdoctor_Gargantuan) && !hasRestlessGiant && !hasWrathfulProtector && Trinity.PlayerOwnedGargantuanCount == 0)
                {
                    return new TrinityPower(SNOPower.Witchdoctor_Gargantuan);
                }
            }

now you WD cast fetish in city )
 
i think this code
Code:
if (CanCast(SNOPower.Witchdoctor_Gargantuan))
{
       return new TrinityPower(SNOPower.Witchdoctor_Gargantuan);
}

need put in
Code:
// Buffs
if (UseOOCBuff)
{
put here 
....
}
 
Back
Top