I am struggling triggering a function called "ResetCombatMode()" , which is meant to be triggered just once, immediately as the last mob in the XTarget list dies off. Basically, when the XTarget list goes from 1 mob to 0 mobs.
I have tried different coding logics, all of them involving some sort of flag true/false to trigger the function from inside the code. The problem that I am having is that, no matter what coding logic I apply, the function triggers every time the code routine cycle runs and there's zero mobs in the XTarget list. I cannot make it to trigger just once immediately upon killing off the last mob.
Can anyone help me with the right logic approach please?
I have tried different coding logics, all of them involving some sort of flag true/false to trigger the function from inside the code. The problem that I am having is that, no matter what coding logic I apply, the function triggers every time the code routine cycle runs and there's zero mobs in the XTarget list. I cannot make it to trigger just once immediately upon killing off the last mob.
Can anyone help me with the right logic approach please?


