TreeK
New Member
- Joined
- Jul 10, 2012
- Messages
- 170
I mainly see it when dealing with logics that deal with pet health, I think enemy pet health more than anything. For example, I have some logics that will use CASTSPELL(N) when enemy health is above 75. Often I will see that spell used when the enemy pet health is much lower than 75. I see it on occasion with swapping out pets based on their own health. A pet well below the swap out health level, with no other effects on it preventing a swap, will not swap out but continuing to fight. When another action occurs, like the enemy pet dying, it seems to catch up and will then swap out.What Grommers said. Also, forgot to do all that stuff for PVP =P My GF is visiting, so I haven't done much coding. TreeK, I am not quite sure what else I could do if it is a race condition. That seems more likely to be a problem with how HB is coded. Maybe there is a way to declare that it is a critical section? When exactly are you getting these problems?
It could also be a problem with the way choose to update the pets. I only update them when an event is fired, and maybe it isn't firing every time I think it will.
It certainly doesn't happen every time, but often enough to irritate me enough to look into it a bit. With the change I made I no longer have the problem, so I'm happy.