@MyPad that's a very bad solution. The a unit is attacked event does not fire when the unit is attacked (the sword strikes its body/the arrow hits its body), but when the attacker starts attacking (the attacker swings its sword/draws an arrow). Using a sequence of attack,stop,attack,stop you can trigger multiple "is attacked" events without even hitting the target once.
Because of this you need to use "takes damage" instead of "is attacked". So you need a DDS, as there is no generic unit event for "takes damage". You also need to make sure it's an attack and no spell when using "takes damage".
It is a lot of work to get it working, but the "is attacked" event is just not capable of detecting actual attacks. It only detects when an attack starts, but attacks can also be canceled.
Also I think we should get back to the topic. Maybe just open another thread about attack detection.