 Wen argued that this rule may only be implemented during peaceful times, because during times of war, enforcement of military law and concentration of military power is of utmost importance to military commanders.Emperor Renzong took his advice and praised him.In 1040, Western Xia army attacked Yan Prefecture.