// 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 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.
Hi! I had the same problem as you do, just remove "|| iPlayerOwnedGargantuan == 0" and it will cast only on elites!