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

Gargantuan Wrathful Protector only on Elites

ski

Well-Known Member
Joined
Feb 12, 2010
Messages
3,720
Reaction score
48
I tried to change this myself in WitchDoctor.cs, but it seems the summoning of Garg on CD is somewhere else. Anyone know what to change to make it only summon Garg on elite packs?
 
I would probalby use TargetUtil.AnyElitesInRange(distance)

garg is on line 169 in my witchdoctor.cs

Code:
            // Gargantuan, Recast on 1+ Elites or Bosses to trigger Restless Giant
            if (!UseOOCBuff && !IsCurrentlyAvoiding && CombatBase.CanCast(SNOPower.Witchdoctor_Gargantuan) && !Player.IsIncapacitated && Player.PrimaryResource >= 147 &&
                (TargetUtil.AnyElitesInRange(15, 1) ||
                 (CurrentTarget != null && (CurrentTarget.IsBossOrEliteRareUnique && CurrentTarget.RadiusDistance <= 15f)) || iPlayerOwnedGargantuan == 0))
            {
                return new TrinityPower(SNOPower.Witchdoctor_Gargantuan, 0f, Vector3.Zero, CurrentWorldDynamicId, -1, 2, 1, WAIT_FOR_ANIM);
            }
 
Last edited:
Would I add that in around line 169? Thank you.
 
I would probalby use TargetUtil.AnyElitesInRange(distance)

garg is on line 169 in my witchdoctor.cs

Code:
            // Gargantuan, Recast on 1+ Elites or Bosses to trigger Restless Giant
            if (!UseOOCBuff && !IsCurrentlyAvoiding && CombatBase.CanCast(SNOPower.Witchdoctor_Gargantuan) && !Player.IsIncapacitated && Player.PrimaryResource >= 147 &&
                (TargetUtil.AnyElitesInRange(15, 1) ||
                 (CurrentTarget != null && (CurrentTarget.IsBossOrEliteRareUnique && CurrentTarget.RadiusDistance <= 15f)) || iPlayerOwnedGargantuan == 0))
            {
                return new TrinityPower(SNOPower.Witchdoctor_Gargantuan, 0f, Vector3.Zero, CurrentWorldDynamicId, -1, 2, 1, WAIT_FOR_ANIM);
            }

I haven't actually tested it, but I think this is to recast it when elites are around - but doesn't cover the regular casting of it when it's not on cd but garg isn't up.
 
For zombie dogs it doesn't matter much that it just recasts on cool down but for WP that would be very handy to let it save it for elites.
 
Ive noticed mass confusion seems to only be used on elites, you could take that code and use it for WP as well?
 
I haven't actually tested it, but I think this is to recast it when elites are around - but doesn't cover the regular casting of it when it's not on cd but garg isn't up.


Hi! I had the same problem as you do, just remove "|| iPlayerOwnedGargantuan == 0" and it will cast only on elites!
 
Hi! I had the same problem as you do, just remove "|| iPlayerOwnedGargantuan == 0" and it will cast only on elites!

Money! Nice job, surprisingly simple solution. Thanks!
 
Hmm, i get a massive amount of red wall of text and Trinity fails to load when removing "|| iPlayerOwnedGargantuan == 0" :-/

Nvm: Seems all it needed was some love with ")))" ;)
 
Last edited:
Back
Top