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

Furious Charge OOC

Bulleye1234

New Member
Joined
Sep 17, 2014
Messages
60
Reaction score
2
Hello. I trying to add my own logic for Furious Charge out of combat to not alow use it if no mobs in path between player and movement point but bot is still using charge even if no mobs on whole screen. Here the edited part of PlayerMover.cs
Code:
// Furious Charge movement for a barb
                if (PowerManager.CanCast(SNOPower.Barbarian_FuriousCharge))
                {
                    Vector3 vThisTarget = vMoveToTarget;
                    if (destinationDistance > 60f)
                        vThisTarget = MathEx.CalculatePointFrom(vMoveToTarget, MyPosition, 60f);
                    [COLOR="#FF0000"]if ((from o in ZetaDia.Actors.GetActorsOfType<DiaUnit>(true)
                         where o != null && o.IsValid &&
                         o.CommonData != null && o.CommonData.IsValid &&
                         //o.ActorType == ActorType.Monster &&
                         o.HitpointsCurrent > 0 &&
                         MathUtil.IntersectsPath(o.Position, 1, ZetaDia.Me.Position, vThisTarget)
                         select o).Count() >= 1)[/COLOR]
                    {
                        ZetaDia.Me.UsePower(SNOPower.Barbarian_FuriousCharge, vThisTarget, Trinity.CurrentWorldDynamicId, -1);
                        SpellHistory.RecordSpell(SNOPower.Barbarian_FuriousCharge);
                        if (Trinity.Settings.Advanced.LogCategories.HasFlag(LogCategory.Movement))
                            Logger.Log(TrinityLogLevel.Debug, LogCategory.Movement, "Using Furious Charge for OOC movement, distance={0}", destinationDistance);
                        return;
                    }
                }

What i'm doing wrong?
 
Last edited:
Everyone is asking for answers on this issue and it hasn't been adressed.
 
Back
Top