After fending off squads of advancing soldiers, the dragon accepts to creating a pact, fusing their souls, healing their wounds.
The dragon accepts to creating a pact, fusing their souls. A pact is healing their wounds. The dragon was fending off squads of advancing soldiers.