Robert the Bruce later account, "Tales of a Grandfather" by Sir Walter Scott, and may have originally been told about his companion-in-arms Sir James Douglas (the "Black Douglas"), who had spent time hiding out in caves within his manor of Lintalee, which was then occupied by the English. The entire account may in fact be a version of a literary trope used in royal biographical writing. A similar story is told, for example, in Jewish sources about King David, and in Persian folklore about the Mongolian warlord Tamerlane and an ant. It is said that before the Battle of Bannockburn, Bruce was attacked
Battle of Halidon Hill ultimate victor. The Treaty of Northampton in 1328 brought an end to over thirty years of intermittent warfare following the defeat of Edward II by Robert Bruce. Bruce's own death the following year opened up an opportunity for the disinherited, Balliol and the English to invade Scotland once more. In 1332 under the leadership of Edward Balliol, son of King John Balliol, and Henry Beaumont, 4th Earl of Buchan, these men invaded Scotland with the full support of Edward III, defeating the Bruce loyalists at the Battle of Dupplin Moor. Building on this success Balliol was crowned King of Scotland.