Pokémon with Magic Guard can only be damaged with direct attacks. This means damage from weather, status conditions, moves like Curse and Leech Seed, recoil damage (except from Struggle), entry hazards and Life Orb damage. Trapping moves and secondary effects still happen. Self afflicting damage such as confusion, Pain Split, Substitute or using Curse. Moves that cause fainting still can cause fainting.