If you are asking about that in relation to auras, I made a system that adds a bonus skill to aura-affected units so you can check the ability level of the bonus ability rather than dealing with the buff. I'm fairly sure that it works 100%, but it's hard to test it under every circumstance. Just call the function once for each unit who has the aura, and it'll work for the rest of the game.
Only problem is that I used alot of separate global arrays instead of structs. Probably would've been 10x easier with structs ^^
Here
If it's not in relation to auras then... I don't have a clue
