EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Bug Reports (https://www.eqemulator.org/forums/forumdisplay.php?f=591)
-   -   whole zone trains (https://www.eqemulator.org/forums/showthread.php?t=25856)

Derision 10-03-2008 06:39 PM

Quote:

Originally Posted by So_1337 (Post 157636)
Another thought -- The example I've used from the start of this overflow debacle is, let's pretend you have four attacks per round. The third kills the mob, so the fourth goes to the next thing on your hate list. However, how is it that a mob so far away can be hit with a melee attack? I'm guessing that distance is only checked at the beginning of an attack round, not for each individual attack.

This is more for my own understanding than anything, but I was wanting to confirm my understanding.

I instrumented the code with loads of printfs to confirm the overflow to the next mob on the hate list and even saw it in the client chat window. Although I didn't specifically confirm it, I believe, like you, that the distance to the target is only checked at the beginning of the attack round, and not if the target is changed between attacks (in Mob::RemoveFromHateList ) during that round.

KLS 10-03-2008 07:33 PM

I have some changes to both the auto attack and hate list code that I think will correct it. Tell me if it doesn't and I'll dig deeper.

Derision 10-03-2008 08:08 PM

Quote:

Originally Posted by KLS (Post 157641)
I have some changes to both the auto attack and hate list code that I think will correct it. Tell me if it doesn't and I'll dig deeper.

Seems to work well on initial testing. (couldn't reproduce the overflow that was easy to do previously).


All times are GMT -4. The time now is 06:51 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.