Untitled Trigger 002
Events
Unit - A unit Finishes training a unit
Conditions
((Trained unit) is A Hero) Equal to True
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
HeroCount[(Player number of (Owner of (Trained unit)))] Greater than 1
Then - Actions
Unit - Remove (Trained unit) from the game
-------- Here you should refund the amount that the hero would have cost to the player. Only use these functions --------
-------- below if you are using WEU, otherwise delete them and replace them with the numbers of the price of the unit trained. --------
Player - Add (Gold cost of (Trained unit-type)) to (Owner of (Trained unit)) Current gold
Player - Add (Wood cost of (Trained unit-type)) to (Owner of (Trained unit)) Current gold
Else - Actions
Set HeroCount[(Player number of (Owner of (Trained unit)))] = (HeroCount[(Player number of (Owner of (Trained unit)))] + 1)