SHJordan
Member
- Joined
- Oct 20, 2012
- Messages
- 636
- Reaction score
- 1
Unfortunatly the defaut attack ranged seems bugged due to internal changes on trinity as far as i know the distance is correct on file:Thank you very much for ur answer/help..
Just copy and paste?
And what about the attack distance?
Also does it work also for zombie bears?
Thanks in advance!
Code:
// Set max ranged attack range, based on Grave Injustice, and current target NOT standing in avoidance, and health > 25%
float rangedAttackMaxRange = 30f;
if (!UseOOCBuff && hasGraveInjustice && !CurrentTarget.IsStandingInAvoidance && Player.CurrentHealthPct > 0.25)
rangedAttackMaxRange = Math.Min(Player.GoldPickupRadius + 8f, 30f);
// Set basic attack range, depending on whether or not we have Bears
float basicAttackRange = 35f;
if (hasGraveInjustice)
basicAttackRange = rangedAttackMaxRange;
else if (Hotbar.Contains(SNOPower.Witchdoctor_ZombieCharger) && Player.PrimaryResource >= 150)
basicAttackRange = 30f;
EDIT: I believe you can comment part of the code to make it default 30f all time like this so it would be like this:
Code:
// Set max ranged attack range, based on Grave Injustice, and current target NOT standing in avoidance, and health > 25%
float rangedAttackMaxRange = 30f;
/*if (!UseOOCBuff && hasGraveInjustice && !CurrentTarget.IsStandingInAvoidance && Player.CurrentHealthPct > 0.25)
rangedAttackMaxRange = Math.Min(Player.GoldPickupRadius + 8f, 30f);*/
Last edited: