I had a player recently cast Storm Sphere into a room and then immediately slamed the door shut.
A 20-foot-radius sphere of whirling air springs into existence centered on a point you choose within range. The sphere remains for the spell’s duration. Each creature in the sphere when it appears or that ends its turn there must succeed on a Strength saving throw or take 2d6 bludgeoning damage. The sphere’s space is difficult terrain.
Until the spell ends, you can use a bonus action on each of your turns to cause a bolt of lightning to leap from the center of the sphere toward one creature you choose within 60 feet of the center. Make a ranged spell attack. You have advantage on the attack roll if the target is in the sphere. On a hit, the target takes 4d6 lightning damage.
While I allowed the spell to take hold, I felt that the bonus action ability to target a creature would be hindered by the obstruction rules while the door was shut.
To target something, you must have a clear path to it, so it can’t be behind total cover.
We play D&D-5E RAW but the wording leaves me wondering, so I am looking for some feedback.