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

Firelight Crusader: movement optimation (move closely to enemies)

bozy12

New Member
Joined
May 13, 2014
Messages
11
Reaction score
0
hello, im botting my crusader with the firelight build now pretty well. it works good on t6, but sometimes it needs a bit longer than it should be. i think its because the "firestarter" proc of akarats champ, for this the bot needs to move closely to the enemies. in my fact he doesnt do that. does anyboy know a way to compare that? i already tried to tweak the combat routine, but it wasnt succesful.

thanks if anybody know a small workarround :).
 
Are you asking how to force your crusader to stand closer to enemies while casting skills like FistofHeaven?

If so you need to make modifications to your CrusaderCombat.cs to the skills you want to modify.

Demonbuddy Folder > Plugins > Trinity > Combat > Abilities > CrusaderCombat.cs



I use this modification:

FIND:
PHP:
                // Fist of Heavens
                if (CanCastFistOfHeavens())
                {
                    return new TrinityPower(SNOPower.X1_Crusader_FistOfTheHeavens, 65f, TargetUtil.GetBestClusterUnit(8f).Position);
                }

CHANGE TO
PHP:
                // Fist of Heavens
                if (CanCastFistOfHeavens())
                {
                    return new TrinityPower(SNOPower.X1_Crusader_FistOfTheHeavens, 10f, TargetUtil.GetBestClusterPoint());
                }



You could even try something like this (NOT TESTED, JUST THEORY):

Find:

PHP:
        private static bool CanCastFistOfHeavens()
        {
            return CanCast(SNOPower.X1_Crusader_FistOfTheHeavens) &&
                (TargetUtil.ClusterExists(8f, 8f) || TargetUtil.EliteOrTrashInRange(8f) || Player.PrimaryResourcePct > 0.5);
        }

CHANGE TO:
PHP:
        private static bool CanCastFistOfHeavens()
        {
            return CanCast(SNOPower.X1_Crusader_FistOfTheHeavens) && TargetUtil.AnyMobsInRange(10f, 1);
        }
 
Last edited:
Are you asking how to force your crusader to stand closer to enemies while casting skills like FistofHeaven?

If so you need to make modifications to your CrusaderCombat.cs to the skills you want to modify.

Demonbuddy Folder > Plugins > Trinity > Combat > Abilities > CrusaderCombat.cs



I use this modification:

FIND:
PHP:
                // Fist of Heavens
                if (CanCastFistOfHeavens())
                {
                    return new TrinityPower(SNOPower.X1_Crusader_FistOfTheHeavens, 65f, TargetUtil.GetBestClusterUnit(8f).Position);
                }

CHANGE TO
PHP:
                // Fist of Heavens
                if (CanCastFistOfHeavens())
                {
                    return new TrinityPower(SNOPower.X1_Crusader_FistOfTheHeavens, 10f, TargetUtil.GetBestClusterPoint());
                }



You could even try something like this (NOT TESTED, JUST THEORY):

Find:

PHP:
        private static bool CanCastFistOfHeavens()
        {
            return CanCast(SNOPower.X1_Crusader_FistOfTheHeavens) &&
                (TargetUtil.ClusterExists(8f, 8f) || TargetUtil.EliteOrTrashInRange(8f) || Player.PrimaryResourcePct > 0.5);
        }

CHANGE TO:
PHP:
        private static bool CanCastFistOfHeavens()
        {
            return CanCast(SNOPower.X1_Crusader_FistOfTheHeavens) && TargetUtil.AnyMobsInRange(10f, 1);
        }

thanks alot! that sounds like i searched for, i will try it now.
 
Watched 2 rifts in a row, a huge improvement if you do what he says. Awesome
 
Back
Top