a unit is attacked
attacker unit equal to the unit you dont want to attack
order unit to stop
your unit takes damage
damage taken greater than or equal to 1
kill your unit
Or you can do the above.. Simple triggers were never my style.
One day I looked to the sky and said:
"If it can be done in a simple way and still work fine. why not?"
how do you make it have a visible attack value but it wont attack?
Alternative 1
Make the attack able to attack only Wards or Trees or something. Set the classification to Worker.
In Gameplay Interface, change the text "Can only target Wards" to blank.
This way it will still have the attack icon, but at least it cannot attack anyone. Eg, you can have an attack with dmg, dmg type, speed etc displayed without the unit actually being able to attack the normal way.
[...]