The moves thunder, thunderbolt, twister, and whirlwind can all hit a pokemon even using fly, and as for dig there is magnitude earthquake and fissure. Using the psychic move Gravity will prevent moves like bounce and fly, as for shadow force, I don't think there are any moves that can hit when Giratina uses shadow force, you could switch for a pokemon that has a normal type to protect yourself from that much damage.