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

Teleport not working out of combat

CombatBarbie

Member
Joined
Sep 10, 2012
Messages
111
Reaction score
1
I got the weapon that makes teleport unlimited but it doesn't cast it for movement only when there's something to hit. I got Use movement spells out of combat checked but doesn't work. Anyone know how to fix this?
 
Code:
// Teleport for a wizard                 if ([COLOR=#ff0000][B]!hasCalamity &&[/B][/COLOR] CombatBase.CanCast(SNOPower.Wizard_Teleport, CombatBase.CanCastFlags.NoTimer) &&
                    CombatBase.TimeSincePowerUse(SNOPower.Wizard_Teleport) > 250 &&
                    destinationDistance >= 10f && !ShrinesInArea(destination))
                {
                    const float maxTeleportRange = 75f;


                    Vector3 vThisTarget = destination;
                    if (destinationDistance > maxTeleportRange)
                        vThisTarget = MathEx.CalculatePointFrom(destination, MyPosition, maxTeleportRange);
                    ZetaDia.Me.UsePower(SNOPower.Wizard_Teleport, vThisTarget, Trinity.CurrentWorldDynamicId, -1);
                    SpellHistory.RecordSpell(SNOPower.Wizard_Teleport);
                    if (Trinity.Settings.Advanced.LogCategories.HasFlag(LogCategory.Movement))
                        Logger.Log(TrinityLogLevel.Debug, LogCategory.Movement, "Using Teleport for OOC movement, distance={0}", destinationDistance);
                    return;

Remove the bit in bold in Trinity > Movement > PlayerMover.cs

The code stops teleport being used OOC if the calamity rune is present, which as I've seen you're pushing high GR's I assume you have for the Arcane Meteor on Del-Rasha or the APD bonus if you're pure Tal's.

Just tested and works fine for moi :)
 
Last edited:
I would imagine, Depending on your resource regeneration/mitigation if you are using aether wand, i'd also suggest something along the lines of;

Trinity.Player.PrimaryResource >= whatever number you feel comfortable with &&

This will help you get your 4 stacks of tal rasha, although not perfectly due to a lack of combat rules supporting Aether Wand.
 
Back
Top