Actions
Unit Group - Pick every unit in (Units in (Playable map area) matching (((Owner of (Matching unit)) Equal to (Owner of (Triggering unit))) and (((Matching unit) is A Hero) Equal to True))) and do (Actions)
Loop - Actions
Hero - Add 300 experience to (Picked unit), Hide level-up graphics
Actions
Set [COLOR="RED"]g[/COLOR] = (Units in (Playable map area) matching (((Owner of (Matching unit)) Equal to (Owner of (Triggering unit))) and (((Matching unit) is A Hero) Equal to True)))
Unit Group - Pick every unit in g and do (Actions)
Loop - Actions
Hero - Add 300 experience to (Picked unit), Hide level-up graphics
Custom script: call DestroyGroup(udg_[COLOR="RED"]g[/COLOR])