Nothing stands out at a quick glance
It's usually really helpful to step through the code to see what's not working. With the code stopped, you can hit F7 or F8 to step through the code line by line, one of them will "step in" to subs and follow the code, the other will just call the sub.
So while your char is damaged, and you have the EUO window up / focused you could hit F8 F8 F8 and walk through the code line by line, you should be able to logic mistakes or calls that are not working as intended.
I'll try to remember to test it out at home tonight