The first one is the max spell range. Currently,the bot attacks monsters with spectral blades, but the arcane orbits don't explode because the range of the orbs is apparently less than the range of spectral blades. So there is a loss of great damage. I've tried 2f,5f,12f in the code below but it seems not to work. Is there a way to modify this code to change the range?
// Spectral Blade
if (CanCast(SNOPower.Wizard_SpectralBlade))
{
return new TrinityPower(SNOPower.Wizard_SpectralBlade, 5f, CurrentTarget.ACDGuid);
}
The second question is, the bot is frequently stuck by mobs which should be ignored. That is, it seems to go anywhere on foot regardless of teleport movement unless it's destination is right in range of max teleport range. Meanwhile, dose this mean it ignore that we equip the passive skill, Illusionist?
Here are two series of code with Teleport: SafePassage for this build
// Defensive Teleport: SafePassage
if (CanCast(SNOPower.Wizard_Teleport, CanCastFlags.NoTimer) && Runes.Wizard.SafePassage.IsActive && Player.CurrentHealthPct <= 0.50)
{
// Teleporting exactly on top of targets prevents them from taking damage
var target = NavHelper.FindSafeZone(false, 1, CurrentTarget.Position, true);
var slightlyForwardPosition = MathEx.GetPointAt(target, 4f, Player.Rotation);
return new TrinityPower(SNOPower.Wizard_Teleport, 65f, slightlyForwardPosition);
}
// Defensive Teleport: SafePassage
if (CanCast(SNOPower.Wizard_Teleport, CanCastFlags.NoTimer) && Runes.Wizard.SafePassage.IsActive &&
Player.CurrentHealthPct <= Settings.Combat.Wizard.SafePassageHealthPct &&
!GetHasBuff(SNOPower.Wizard_Teleport) && (!Legendary.AetherWalker.IsEquipped || Player.PrimaryResource > 40))
{
var target = KiteDistance == 0 ? TargetUtil.GetBestClusterPoint() : NavHelper.FindSafeZone(false, 1, CurrentTarget.Position, true);
// Teleporting exactly on top of targets prevents them from taking damage
var slightlyForwardPosition = MathEx.GetPointAt(target, 4f, Player.Rotation);
return new TrinityPower(SNOPower.Wizard_Teleport, 65f, slightlyForwardPosition);
}
Any advice and suggestions will be appreciated. Thank you.
// Spectral Blade
if (CanCast(SNOPower.Wizard_SpectralBlade))
{
return new TrinityPower(SNOPower.Wizard_SpectralBlade, 5f, CurrentTarget.ACDGuid);
}
The second question is, the bot is frequently stuck by mobs which should be ignored. That is, it seems to go anywhere on foot regardless of teleport movement unless it's destination is right in range of max teleport range. Meanwhile, dose this mean it ignore that we equip the passive skill, Illusionist?
Here are two series of code with Teleport: SafePassage for this build
// Defensive Teleport: SafePassage
if (CanCast(SNOPower.Wizard_Teleport, CanCastFlags.NoTimer) && Runes.Wizard.SafePassage.IsActive && Player.CurrentHealthPct <= 0.50)
{
// Teleporting exactly on top of targets prevents them from taking damage
var target = NavHelper.FindSafeZone(false, 1, CurrentTarget.Position, true);
var slightlyForwardPosition = MathEx.GetPointAt(target, 4f, Player.Rotation);
return new TrinityPower(SNOPower.Wizard_Teleport, 65f, slightlyForwardPosition);
}
// Defensive Teleport: SafePassage
if (CanCast(SNOPower.Wizard_Teleport, CanCastFlags.NoTimer) && Runes.Wizard.SafePassage.IsActive &&
Player.CurrentHealthPct <= Settings.Combat.Wizard.SafePassageHealthPct &&
!GetHasBuff(SNOPower.Wizard_Teleport) && (!Legendary.AetherWalker.IsEquipped || Player.PrimaryResource > 40))
{
var target = KiteDistance == 0 ? TargetUtil.GetBestClusterPoint() : NavHelper.FindSafeZone(false, 1, CurrentTarget.Position, true);
// Teleporting exactly on top of targets prevents them from taking damage
var slightlyForwardPosition = MathEx.GetPointAt(target, 4f, Player.Rotation);
return new TrinityPower(SNOPower.Wizard_Teleport, 65f, slightlyForwardPosition);
}
Any advice and suggestions will be appreciated. Thank you.