Are you asking about the "ally attack" timer? Your approach is almost correct. The problem is that the entire event #5 repeats on every tick, restarting the timer again and again, so it never ends.
You need to add additional conditions, for example "Timer not running". Or use a triggered event, for example "Allies On Collision with enemyBase"