zimberzimber wrote:recomputeStats in traits comes after heroes?
If so, I'm just gonna give every champion a hidden trait for all the stat sharing.
I am not sure what you mean there, but the various onRecomputeStats functions are called in some order, I don't know which one. I you want to know exactly this order, you could print some messages in all EquipmentItemComponent, skills and traits of champions, (in races, classes, ...) then see if they always appear in the same order.
But you can be nearly sure, when inside a onRecomputeStats function that you won't be in the last one to be executed, so the stats you can read from champions are not final, they are being built, you can't trust their current value. It is possible for example that your protection was still 0 at the time you read it.
All thoses functions are called every frame, before any timer component triggers, so you could use a timer to get the current value of a stat, but not while they are being calculated.