Ok this might have been asked about 21421 times but. When a hero attacks a unit or another hero, i want it to gain exp but i just can't get it working.
You should try to code this on JASS since many heroes attacking might cause the trigger to generate slow code and mess up, but this is just a theory, I think it happened to me once. JASS might help a bit if this issue comes to existence.