My bot has problems dealing with multiple targets, the profile I am using attacks smalls groups of 5-7 and after the first mob is dead, it sits there and lets the mobs beat on it.
This is one of the errors its pitching me, I can upload a full log if necessary.
Code:
[04:36:26.327 D] System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.OverflowException: Arithmetic operation resulted in an overflow.
at System.IntPtr.op_Explicit(Int64 value)
at Styx.WoWInternals.WoWObjects.UnitThreatInfo.( , UInt32 , UInt64 , IntPtr& )
at Styx.WoWInternals.WoWObjects.UnitThreatInfo.(WoWUnit , WoWUnit )
at Styx.WoWInternals.WoWObjects.WoWUnit.GetThreatInfoFor(WoWUnit otherUnit)
at Styx.WoWInternals.WoWObjects.WoWUnit.get_ThreatInfo()
at Styx.WoWInternals.WoWObjects.WoWUnit.get_Aggro()
at Styx.CommonBot.Targeting.DefaultRemoveTargetsFilter(List`1 units)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at System.Delegate.DynamicInvoke(Object[] args)
at Styx.CommonBot.Targeting.(Delegate , Object[] ) --> System.OverflowException: Arithmetic operation resulted in an overflow.
at System.IntPtr.op_Explicit(Int64 value)
at Styx.WoWInternals.WoWObjects.UnitThreatInfo.( , UInt32 , UInt64 , IntPtr& )
at Styx.WoWInternals.WoWObjects.UnitThreatInfo.(WoWUnit , WoWUnit )
at Styx.WoWInternals.WoWObjects.WoWUnit.GetThreatInfoFor(WoWUnit otherUnit)
at Styx.WoWInternals.WoWObjects.WoWUnit.get_ThreatInfo()
at Styx.WoWInternals.WoWObjects.WoWUnit.get_Aggro()
at Styx.CommonBot.Targeting.DefaultRemoveTargetsFilter(List`1 units)
This is one of the errors its pitching me, I can upload a full log if necessary.