A wizard cast a fireball and a fighter use a shield or a wall to avoid being hit . The shield takes all the damage and the fighter runs completely unharmed! On DND4 that could be a magic attack roll I think. What mechanics describes that on pathfinder?