If the target land is an illegal target by the time Geomancer’s Gambit tries to resolve, the spell doesn’t resolve. Its controller doesn’t search for a basic land card and you don’t draw a card. If the target is legal but not destroyed (most likely because it has indestructible), its controller does search and you do draw.

Artwork
Loading artwork…
Geomancer's Gambit
The List · #MH1-125 · EN
Nonfoil—Foil—
Card rules
Destroy target land. Its controller may search their library for a basic land card, put it onto the battlefield, then shuffle.
Draw a card.
Telepathy changes minds, necromancy changes lives, but geomancy changes the world.
Common · Illustrated by Adam Paquette
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pauper Legal
Pauper Commander Legal
Timeless Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
Penny Not Legal
Pioneer Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions