The fort is attacked once when they arrive, and once during the final confrontation.
The final enemy of the adventure uses legendary actions in addition to it's basic abilities. Feel free to adjust it's damage values if you think the players want additional challenges!