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

Crusader - Hammerdin, Falling Sword - Delay issue fix

noxiaz

New Member
Joined
Feb 7, 2016
Messages
29
Reaction score
0
I have now started using the hammerdin build, and i found an issues with the new implemented delay fix with Falling Sword, becasue of the delay it cant use Falling Sword when mobs are dead and want to move to next target.
Therefor i have created a fix for this, which i call "Mob range" - With this setting you can override the delay if there are no mobs inside the range you choose. (If you dont want to to be used, you can just set the range t

The code looks now like this:
Code:
protected override bool ShouldFallingSword(out Vector3 position)
{
    position = Vector3.Zero;

    if (!Skills.Crusader.FallingSword.CanCast())
        return false;

    //If your health falls below the Emergency Health Percentage in Trinity > Routine settings, cast falling sword again regardless of delay setting.
    if (Player.CurrentHealthPct < Settings.EmergencyHealthPct)
        return true;

    //Uses the delay [in milliseconds] defined in Trinity > Routines to keep falling sword from being recast too quickly - Added check for mobs inside range
    if (Skills.Crusader.FallingSword.TimeSinceUse < Settings.FallingSwordDelay && TargetUtil.AnyMobsInRange(Settings.FallingSwordMobsRange))
        return false;

    var target = TargetUtil.GetBestClusterUnit() ?? CurrentTarget;
    if (target != null)
    {
        position = target.Position;
        return true;
    }

    return false;
}

The zip file contains both the view and the code file.
 

Attachments

Last edited:
Nice one, i am using it at the moment, thanks for the file !!
 
You are welcome - Again, please let me know if you find any "bugs" or improvements for the routine.
 
im going to include this in .721+. thnx noxiaz
 
Back
Top