Aside from historical references to siege warfare, and occasional contemporary references to fireworks, petard is almost always encountered in variations of the phrase "," meaning "victimized or hurt by one's own scheme.
The engineer lit the fuse, and braced the pole.
Je peux venir dans une Cour jeter un petard mouillé, et quand même gagner le combat.