I am aware of only three ways that diving could affect coral.
1) Boat's anchor doing physical damage, which is why popular dive spots have mooring buoys.
2) Many popular sun screen lotions are really bad for coral.
3) Physically touching the coral can do damage, even if gently.
Are there any other factors of which I am unaware?