Flags have been on occasion used as rallying elements in the time of battles; troopers might collect round their colors for morale
https://magdanxojj.raindrop.page/bookmarks-77398930
Flags have been regularly used as rallying elements at some point of battles; soldiers would bring together around their colors for morale enhance whilst confronted with overwhelming odds.