The ball came in with the natural angle towards off and middle which forced Shafiq to play at it, but then moved away a touch after pitching to take the outside edge.
It will be the first time that the Lankans play with a pink ball Test, besides being upbeat after winning the first Test by 21 runs. All Sri Lanka had to do when they began their second innings was to see out the new ball, with a view to scoring roughly 200 on day four in order to set up a declaration.
That is when Pakistan bowlers could have put him under pressure and taken a couple of more wickets to push Lanka on the backfoot completely.
The Pakistani spin-wizard earlier claimed a five-wicket haul in the Abu Dhabi Test against Sri Lanka (5-51), Dominica Test against West Indies (5-92), Barbados Test against West Indies (7-94), and Jamaica Test against West Indies (6-63).
Where is the Venue of Pakistan vs Sri Lanka 2nd Test match?
Iran condemns Pakistan's Baluchistan terrorist attack
The local administration declared an emergency at hospitals in Sibbi and Dera Murad Jamali. Provincial home minister Sarfaraz Bugti confirmed the toll.
That leaves Pakistan, already struggling with the ball in this Test, a bowler short going ahead - with only one specialist spinner and with Wahab Riaz enduring his own problems at one stage with his run-up. Excluding him, three others made half centuries named Chandimal, Dickwella and Perera. Not only did he score runs but also displayed the elegance that is often a trademark of a left-handed batsman.
Ali and Sohail lifted Pakistan from a precarious 109-4 during a battling fifth-wicket stand of 71, but once Ali was gone the innings unfolded.
Leg-spinner Yasir Shah was the pick of bowlers with 2-90 while Amir returned figures of 1-59.
The first Test Centurion Captain Dinesh Chandimal demonstrated his brilliant form with the bat, and along with Karunaratne established a 118-run partnership for fourth wicket which still continues. He took six wickets in 55.5 overs. Masood and Aslam have come to bat and finished the second day with 15 and 30 runs so far.