Unit Group - Pick every unit in AIgroup and do (Actions)
Loop - Actions
Set i = (Player number of (Owner of (Picked unit)))
Set mauitnhat = 999999.00
Set heromauitnhat = No unit
Unit Group - Pick every unit in (Units in (Region centered at (Position of AI[i]) with size (1600.00, 1200.00))) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) belongs to an enemy of (Owner of AI[i])) Equal to True
((Picked unit) is in HeroGroup) Equal to True
((Picked unit) is alive) Equal to True
(Life of (Picked unit)) Less than or equal to mauitnhat
Then - Actions
Set mauitnhat = (Life of (Picked unit))
Set heromauitnhat = (Picked unit)
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Percentage life of AI[i]) Greater than or equal to 36.00
(Percentage life of heromauitnhat) Less than or equal to 34.00
heromauitnhat Not equal to No unit
Then - Actions
Set herotancong[i] = True
Wait 0.20 seconds
Unit - Order AI[i] to Attack heromauitnhat
Else - Actions
Do nothing