Quote from: Jaylo on May 14, 2024, 07:19:45 amThanks for the quick reply.
So the first poach message is an illegal poach done with full damage which needs another strike to give you the legal poach message.
If the illegal poach happens on the 4th strike there is no 5th to correct it so the game just stops.
This is a shame as the Barrage skill is the best for poaching with it's four strikes.
Okay, this should do it.
So the way the Barrage formula works normally is by calling the routine for switching from a Break attack to a normal weapon attack and then calculating the damage reduction from there. Unfortunately, the routine for switching to a normal weapon attack runs the Poach/Train routine before returning to the Barrage formula.
I just added some more lines to the Barrage code before it runs the switch to weapon attack routine, flipping a switch in some empty data, then made the Poach/Train routine check if that switch was flipped. If so, it skips running the Poach/Train checks. After running the switch to weapon attack routine and returning to Barrage to calculate the true final damage result, I flip that switch off, then jump directly to the Poach/Train routine using the new (and correct) damage numbers.
I was hoping it would be that simple in the end, but I didn't have time to test last night. I'm glad I was right, though!
For bonus points, this is even the version of Barrage I've already upgraded so that it will show the spell effect when using a Magic Gun.
Make sure to double-check the Conflict Checker in TLW/otL's OrgASM against the existing hacks that there are no conflicts, though. As the code was expanded, if there was something else immediately after it, it will now bleed into other hacks' code and cause issues.