how do i make this work. order unit to cast holy light on nearby unit if it has 50 or less life
freehand
event
a unit is attacked
condition
attacked unit health less than or equal to 50
action
set temp_caster to [random unit in 500 range of attacked unit [if it has holy light]]
order [temp_caster] to holy light on attacked unit
freehand
event
a unit is attacked
condition
attacked unit health less than or equal to 50
action
set temp_caster to [random unit in 500 range of attacked unit [if it has holy light]]
order [temp_caster] to holy light on attacked unit