I've attempted to edit to match your coding but I just receive compiler errors. Is this an older version of trinity by chance?
Using latest trinity 2.14.24. Some people are saying it's giving compiling errors. Try using this snippet for the teleport function instead.
Code:
// Defensive Teleport: SafePassage
if (CanCast(SNOPower.Wizard_Teleport, CanCastFlags.NoTimer) && Runes.Wizard.SafePassage.IsActive &&
Player.CurrentHealthPct <= Settings.Combat.Wizard.SafePassageHealthPct &&
((!Legendary.AetherWalker.IsEquipped || Player.PrimaryResource > 40)))
{
var bestClusterPoint = TargetUtil.GetBestClusterPoint(5f, 10f);
// Teleporting exactly on top of targets prevents them from taking damage
var slightlyForwardPosition = MathEx.GetPointAt(bestClusterPoint, 4f, Player.Rotation);
return new TrinityPower(SNOPower.Wizard_Teleport, 55f, slightlyForwardPosition);
}
Note that there are two safe passage teleport functions, one for defensive when you're under 50 percent health as a safety avoidance measure, then there's one for when you're above 50 percent. Make sure you're replacing the second function. It's located right after the calamity offensive teleport function.
Last edited: