plz tell me if this is leakes and if not tell me how to make it so
Thank you for your help
Code:
Exp Gain
Events
Unit - A unit Dies
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Triggering unit) is A Hero) Equal to True
Then - Actions
Hero - Add ((Level of (Triggering unit)) x 10) experience to (Killing unit), Show level-up graphics
Unit Group - Pick every unit in (Units within 1200.00 of (Position of (Triggering unit))) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Dying unit) belongs to an enemy of (Owner of (Killing unit))) Equal to True
Then - Actions
Hero - Add ((Level of (Triggering unit)) x 30) experience to (Picked unit), Show level-up graphics
Else - Actions
Else - Actions
Hero - Add ((Level of (Triggering unit)) x 10) experience to (Killing unit), Show level-up graphics
Unit Group - Pick every unit in (Units within 1200.00 of (Position of (Triggering unit))) and do (Actions)
Loop - Actions
Hero - Add ((Level of (Triggering unit)) x 10) experience to (Picked unit), Show level-up graphics
Thank you for your help