According to the Chinese History, subject refers are the 5 survivor of Shaolin legendary grand masters.
https://en.wikipedia.org/wiki/Bak_Mei
In history, Ng Mui was escaping from temple to temple while Bak Mei joined the military and lead the troop to kill/eliminate other shaolin Temple.
What if those 5 elderly grant masters put down status as Monk/Nun, join the military with righteous intention and good deed/win win term and condition with Emperor. In this case, path to Nirvana likely unable to achieve.
https://en.wikipedia.org/wiki/Hall_of_Kshitigarbha "Until the hells are empty (of suffering beings), I will not become a Buddha." (「地獄不空,誓不成佛。」)
The intention is to influence the Emperor/General to minimize the damages and at the same time not losing the Empire base on Buddhism teaching? By right those grand masters should equipped with Buddhism/Taoism super natural abilities then should not be difficult.? If it doesn't work and disagreement from Emperor, then quit the military.
If influence to the emperor was success and damages was minimum say 50k killed instead of 500k. So it saved 90% lives and many of them inspired and follow grand master learning Buddhism. Then Buddhism get greater influence and follower multiples.
In this case, can the 50k person killed is waived from Bad Karma? Those grand master should have high Buddhism wisdom power to influence and change ?
This might applicable to corporate working life now or politics world.