card_name
stringlengths 1
141
| type_line
stringlengths 4
62
| oracle_text
stringlengths 3
769
|
---|---|---|
Recurring Insight | Sorcery | Draw cards equal to the number of cards in target opponent's hand.
Rebound (If you cast this spell from your hand, exile it as it resolves. At the beginning of your next upkeep, you may cast this card from exile without paying its mana cost.) |
Squadron Hawk | Creature β Bird | Flying
When Squadron Hawk enters the battlefield, you may search your library for up to three cards named Squadron Hawk, reveal them, put them into your hand, then shuffle your library. |
Goblin Sappers | Creature β Goblin | {R}{R}, {T}: Target creature you control can't be blocked this turn. Destroy it and Goblin Sappers at end of combat.
{R}{R}{R}{R}, {T}: Target creature you control can't be blocked this turn. Destroy it at end of combat. |
Writ of Passage | Enchantment β Aura | Enchant creature
Whenever enchanted creature attacks, if its power is 2 or less, it can't be blocked this turn.
Forecast β {1}{U}, Reveal Writ of Passage from your hand: Target creature with power 2 or less can't be blocked this turn. (Activate this ability only during your upkeep and only once each turn.) |
Ebon Praetor | Creature β Avatar Praetor | First strike, trample
At the beginning of your upkeep, put a -2/-2 counter on Ebon Praetor.
Sacrifice a creature: Remove a -2/-2 counter from Ebon Praetor. If the sacrificed creature was a Thrull, put a +1/+0 counter on Ebon Praetor. Activate this ability only during your upkeep and only once each turn. |
Seedcradle Witch | Creature β Elf Shaman | {2}{G}{W}: Target creature gets +3/+3 until end of turn. Untap that creature. |
Hixus, Prison Warden | Legendary Creature β Human Soldier | Flash (You may cast this spell any time you could cast an instant.)
Whenever a creature deals combat damage to you, if Hixus, Prison Warden entered the battlefield this turn, exile that creature until Hixus leaves the battlefield. (That creature returns under its owner's control.) |
Priest of the Blood Rite | Creature β Human Cleric | When Priest of the Blood Rite enters the battlefield, create a 5/5 black Demon creature token with flying.
At the beginning of your upkeep, you lose 2 life. |
Serrated Arrows | Artifact | Serrated Arrows enters the battlefield with three arrowhead counters on it.
At the beginning of your upkeep, if there are no arrowhead counters on Serrated Arrows, sacrifice it.
{T}, Remove an arrowhead counter from Serrated Arrows: Put a -1/-1 counter on target creature. |
Ovalchase Daredevil | Creature β Human Pilot | Whenever an artifact enters the battlefield under your control, you may return Ovalchase Daredevil from your graveyard to your hand. |
Electrostatic Pummeler | Artifact Creature β Construct | When Electrostatic Pummeler enters the battlefield, you get {E}{E}{E} (three energy counters).
Pay {E}{E}{E}: Electrostatic Pummeler gets +X/+X until end of turn, where X is its power. |
City of Shadows | Land | {T}, Exile a creature you control: Put a storage counter on City of Shadows.
{T}: Add {C} for each storage counter on City of Shadows. |
Swamp | Basic Land β Swamp | ({T}: Add {B}.) |
Mystic Speculation | Sorcery | Buyback {2} (You may pay an additional {2} as you cast this spell. If you do, put this card into your hand as it resolves.)
Scry 3. (Look at the top three cards of your library, then put any number of them on the bottom of your library and the rest on top in any order.) |
Negate | Instant | Counter target noncreature spell. |
Elven Fortress | Enchantment | {1}{G}: Target blocking creature gets +0/+1 until end of turn. |
Security Detail | Enchantment | {W}{W}: Create a 1/1 white Soldier creature token. Activate this ability only if you control no creatures and only once each turn. |
Wrath of God | Sorcery | Destroy all creatures. They can't be regenerated. |
Helionaut | Creature β Human Soldier | Flying
{1}, {T}: Add one mana of any color. |
Clickslither | Creature β Insect | Haste
Sacrifice a Goblin: Clickslither gets +2/+2 and gains trample until end of turn. |
Forsaken Sanctuary | Land | Forsaken Sanctuary enters the battlefield tapped.
{T}: Add {W} or {B}. |
Take Vengeance | Sorcery | Destroy target tapped creature. |
Ogre Menial | Creature β Ogre | Infect (This creature deals damage to creatures in the form of -1/-1 counters and to players in the form of poison counters.)
{R}: Ogre Menial gets +1/+0 until end of turn. |
Shape Stealer | Creature β Shapeshifter Spirit | Whenever Shape Stealer blocks or becomes blocked by a creature, change Shape Stealer's base power and toughness to that creature's power and toughness until end of turn. |
Island | Basic Land β Island | ({T}: Add {U}.) |
Web | Enchantment β Aura | Enchant creature (Target a creature as you cast this. This card enters the battlefield attached to that creature.)
Enchanted creature gets +0/+2 and has reach. (It can block creatures with flying.) |
Primordial Ooze | Creature β Ooze | Primordial Ooze attacks each combat if able.
At the beginning of your upkeep, put a +1/+1 counter on Primordial Ooze. Then you may pay {X}, where X is the number of +1/+1 counters on it. If you don't, tap Primordial Ooze and it deals X damage to you. |
Hover Barrier | Creature β Illusion Wall | Defender, flying |
Scholar of Athreos | Creature β Human Cleric | {2}{B}: Each opponent loses 1 life. You gain life equal to the life lost this way. |
Zealous Persecution | Instant | Until end of turn, creatures you control get +1/+1 and creatures your opponents control get -1/-1. |
Ever After | Sorcery | Return up to two target creature cards from your graveyard to the battlefield. Each of those creatures is a black Zombie in addition to its other colors and types. Put Ever After on the bottom of its owner's library. |
Fluctuator | Artifact | Cycling abilities you activate cost up to {2} less to activate. |
Repel | Instant | Put target creature on top of its owner's library. |
Stoke the Flames | Instant | Convoke (Your creatures can help cast this spell. Each creature you tap while casting this spell pays for {1} or one mana of that creature's color.)
Stoke the Flames deals 4 damage to any target. |
Thistledown Duo | Creature β Kithkin Soldier Wizard | Whenever you cast a white spell, Thistledown Duo gets +1/+1 until end of turn.
Whenever you cast a blue spell, Thistledown Duo gains flying until end of turn. |
Showstopper | Instant | Until end of turn, creatures you control gain "When this creature dies, it deals 2 damage to target creature an opponent controls." |
Sibsig Host | Creature β Zombie | When Sibsig Host enters the battlefield, each player puts the top three cards of their library into their graveyard. |
Leering Emblem | Artifact β Equipment | Whenever you cast a spell, equipped creature gets +2/+2 until end of turn.
Equip {2} |
Aven Redeemer | Creature β Bird Cleric | Flying
{T}: Prevent the next 2 damage that would be dealt to any target this turn. |
Samut, Voice of Dissent | Legendary Creature β Human Warrior | Flash
Double strike, vigilance, haste
Other creatures you control have haste.
{W}, {T}: Untap another target creature. |
Wild Defiance | Enchantment | Whenever a creature you control becomes the target of an instant or sorcery spell, that creature gets +3/+3 until end of turn. |
Slobad, Goblin Tinkerer | Legendary Creature β Goblin Artificer | Sacrifice an artifact: Target artifact gains indestructible until end of turn. |
Hell's Caretaker Avatar | Vanguard | {3}, Sacrifice a creature: Return target creature card from your graveyard to the battlefield. |
Thought Vessel | Artifact | You have no maximum hand size.
{T}: Add {C}. |
Charging Griffin | Creature β Griffin | Flying (This creature can't be blocked except by creatures with flying or reach.)
Whenever Charging Griffin attacks, it gets +1/+1 until end of turn. |
Tragic Slip | Instant | Target creature gets -1/-1 until end of turn.
Morbid β That creature gets -13/-13 until end of turn instead if a creature died this turn. |
League Guildmage | Creature β Human Wizard | {3}{U}, {T}: Draw a card.
{X}{R}, {T}: Copy target instant or sorcery spell you control with converted mana cost X. You may choose new targets for the copy. |
Vengeful Warchief | Creature β Orc Warrior | Whenever you lose life for the first time each turn, put a +1/+1 counter on Vengeful Warchief. (Damage causes loss of life.) |
Reality Ripple | Instant | Target artifact, creature, or land phases out. (While it's phased out, it's treated as though it doesn't exist. It phases in before its controller untaps during their next untap step.) |
Arctic Nishoba | Creature β Cat Warrior | Trample
Cumulative upkeep {G} or {W} (At the beginning of your upkeep, put an age counter on this permanent, then sacrifice it unless you pay its upkeep cost for each age counter on it.)
When Arctic Nishoba dies, you gain 2 life for each age counter on it. |
Hand of Emrakul | Creature β Eldrazi | You may sacrifice four Eldrazi Spawn rather than pay this spell's mana cost.
Annihilator 1 (Whenever this creature attacks, defending player sacrifices a permanent.) |
Waterwhirl | Instant | Return up to two target creatures to their owners' hands. |
Chainer's Torment | Enchantment β Saga | (As this Saga enters and after your draw step, add a lore counter. Sacrifice after III.)
I, II β Chainer's Torment deals 2 damage to each opponent and you gain 2 life.
III β Create an X/X black Nightmare Horror creature token, where X is half your life total, rounded up. It deals X damage to you. |
Forest | Basic Land β Forest | ({T}: Add {G}.) |
Fungal Shambler | Creature β Fungus Beast | Trample
Whenever Fungal Shambler deals damage to an opponent, you draw a card and that opponent discards a card. |
Lure | Enchantment β Aura | Enchant creature
All creatures able to block enchanted creature do so. |
Identity Thief | Creature β Shapeshifter | Whenever Identity Thief attacks, you may exile another target nontoken creature. If you do, Identity Thief becomes a copy of that creature until end of turn. Return the exiled card to the battlefield under its owner's control at the beginning of the next end step. |
Swamp | Basic Land β Swamp | ({T}: Add {B}.) |
Barrage of Expendables | Enchantment | {R}, Sacrifice a creature: Barrage of Expendables deals 1 damage to any target. |
Press the Advantage | Instant | Up to two target creatures each get +2/+2 and gain trample until end of turn. |
Reduce // Rubble | Instant // Sorcery | nan |
Bursting Beebles | Creature β Beeble | Bursting Beebles can't be blocked as long as defending player controls two or more nonland permanents that share an artist. |
Arcum's Astrolabe | Snow Artifact | ({S} can be paid with one mana from a snow permanent.)
When Arcum's Astrolabe enters the battlefield, draw a card.
{1}, {T}: Add one mana of any color. |
Sootwalkers | Creature β Elemental Rogue | Sootwalkers can't be blocked by white creatures. |
Nantuko Mentor | Creature β Insect Druid | {2}{G}, {T}: Target creature gets +X/+X until end of turn, where X is that creature's power. |
Enter the God-Eternals | Sorcery | Enter the God-Eternals deals 4 damage to target creature and you gain life equal to the damage dealt this way. Target player puts the top four cards of their library into their graveyard. Amass 4. (Put four +1/+1 counters on an Army you control. If you don't control one, create a 0/0 black Zombie Army creature token first.) |
Broodhatch Nantuko | Creature β Insect Druid | Whenever Broodhatch Nantuko is dealt damage, you may create that many 1/1 green Insect creature tokens.
Morph {2}{G} (You may cast this card face down as a 2/2 creature for {3}. Turn it face up any time for its morph cost.) |
Unbreakable Formation | Instant | Creatures you control gain indestructible until end of turn.
Addendum β If you cast this spell during your main phase, put a +1/+1 counter on each of those creatures and they gain vigilance until end of turn. |
Raptor Companion | Creature β Dinosaur | nan |
Chandra's Flame Wave | Sorcery | Chandra's Flame Wave deals 2 damage to target player and each creature that player controls. Search your library and/or graveyard for a card named Chandra, Flame's Fury, reveal it, and put it into your hand. If you search your library this way, shuffle it. |
Unstable Shapeshifter | Creature β Shapeshifter | Whenever another creature enters the battlefield, Unstable Shapeshifter becomes a copy of that creature, except it has this ability. |
Scepter of Empires | Artifact | {T}: Scepter of Empires deals 1 damage to target player or planeswalker. It deals 3 damage instead if you control artifacts named Crown of Empires and Throne of Empires. |
Juggernaut | Artifact Creature β Juggernaut | Juggernaut attacks each combat if able.
Juggernaut can't be blocked by Walls. |
Danitha Capashen, Paragon | Legendary Creature β Human Knight | First strike, vigilance, lifelink
Aura and Equipment spells you cast cost {1} less to cast. |
Forest | Basic Land β Forest | ({T}: Add {G}.) |
Ondu Giant | Creature β Giant Druid | When Ondu Giant enters the battlefield, you may search your library for a basic land card, put it onto the battlefield tapped, then shuffle your library. |
Kessig | Plane β Innistrad | Prevent all combat damage that would be dealt by non-Werewolf creatures.
Whenever you roll {CHAOS}, each creature you control gets +2/+2, gains trample, and becomes a Werewolf in addition to its other types until end of turn. |
Colossodon Yearling | Creature β Beast | nan |
Laquatus's Creativity | Sorcery | Target player draws cards equal to the number of cards in their hand, then discards that many cards. |
Petrified Plating | Enchantment β Aura | Enchant creature
Enchanted creature gets +2/+2.
Suspend 2β{G} (Rather than cast this card from your hand, you may pay {G} and exile it with two time counters on it. At the beginning of your upkeep, remove a time counter. When the last is removed, cast it without paying its mana cost.) |
Sickening Shoal | Instant β Arcane | You may exile a black card with converted mana cost X from your hand rather than pay this spell's mana cost.
Target creature gets -X/-X until end of turn. |
Glint Hawk | Creature β Bird | Flying
When Glint Hawk enters the battlefield, sacrifice it unless you return an artifact you control to its owner's hand. |
Skyreach Manta | Artifact Creature β Fish | Sunburst (This enters the battlefield with a +1/+1 counter on it for each color of mana spent to cast it.)
Flying |
Meloku the Clouded Mirror | Legendary Creature β Moonfolk Wizard | Flying
{1}, Return a land you control to its owner's hand: Create a 1/1 blue Illusion creature token with flying. |
Cruel Revival | Instant | Destroy target non-Zombie creature. It can't be regenerated. Return up to one target Zombie card from your graveyard to your hand. |
Solemn Offering | Sorcery | Destroy target artifact or enchantment. You gain 4 life. |
Herald of the Host | Creature β Angel | Flying, vigilance
Myriad (Whenever this creature attacks, for each opponent other than defending player, you may create a token that's a copy of this creature that's tapped and attacking that player or a planeswalker they control. Exile the tokens at end of combat.) |
Valiant Guard | Creature β Human Soldier | nan |
Soot Imp | Creature β Imp | Flying
Whenever a player casts a nonblack spell, that player loses 1 life. |
Molten Rain | Sorcery | Destroy target land. If that land was nonbasic, Molten Rain deals 2 damage to the land's controller. |
Glorybringer | Creature β Dragon | Flying, haste
You may exert Glorybringer as it attacks. When you do, it deals 4 damage to target non-Dragon creature an opponent controls. (An exerted creature won't untap during your next untap step.) |
Shambling Shell | Creature β Plant Zombie | Sacrifice Shambling Shell: Put a +1/+1 counter on target creature.
Dredge 3 (If you would draw a card, instead you may put exactly three cards from the top of your library into your graveyard. If you do, return this card from your graveyard to your hand. Otherwise, draw a card.) |
Mountain | Basic Land β Mountain | ({T}: Add {R}.) |
Damnation | Sorcery | Destroy all creatures. They can't be regenerated. |
Seasoned Marshal | Creature β Human Soldier | Whenever Seasoned Marshal attacks, you may tap target creature. |
Sai of the Shinobi | Artifact β Equipment | Equipped creature gets +1/+1.
Whenever a creature enters the battlefield under your control, you may attach Sai of the Shinobi to it.
Equip {2} |
Avatar of Growth | Creature β Elemental Avatar | This spell costs {1} less to cast for each opponent you have.
Trample
When Avatar of Growth enters the battlefield, each player searches their library for up to two basic land cards, puts them onto the battlefield, then shuffles their library. |
Monastery Loremaster | Creature β Djinn Wizard | Megamorph {5}{U} (You may cast this card face down as a 2/2 creature for {3}. Turn it face up any time for its megamorph cost and put a +1/+1 counter on it.)
When Monastery Loremaster is turned face up, return target noncreature, nonland card from your graveyard to your hand. |
Goldnight Redeemer | Creature β Angel | Flying
When Goldnight Redeemer enters the battlefield, you gain 2 life for each other creature you control. |
Gideon, Champion of Justice | Legendary Planeswalker β Gideon | +1: Put a loyalty counter on Gideon, Champion of Justice for each creature target opponent controls.
0: Until end of turn, Gideon, Champion of Justice becomes a Human Soldier creature with power and toughness each equal to the number of loyalty counters on him and gains indestructible. He's still a planeswalker. Prevent all damage that would be dealt to him this turn.
β15: Exile all other permanents. |
End of preview. Expand
in Data Studio
Magic the gathering dataset
This dataset contains text of all magic the gathering cards. Example usage:
from datasets import load_dataset
dataset = load_dataset('augustoperes/mtg_text')
dataset
# outputs:
# DatasetDict({
# train: Dataset({
# features: ['card_name', 'type_line', 'oracle_text'],
# num_rows: 20063
# })
# validation: Dataset({
# features: ['card_name', 'type_line', 'oracle_text'],
# num_rows: 5016
# })
# })
Elements of the dataset are, for example:
train_dataset = dataset['train']
train_dataset[0]
# Outputs
# {'card_name': 'Recurring Insight',
# 'type_line': 'Sorcery',
# 'oracle_text': "Draw cards equal to the number of cards in target opponent's hand.\nRebound (If you cast this spell from your hand, exile it as it resolves. At the beginning of your next upkeep, you may cast this card from exile without paying its mana cost.)"}
Example usage with Pytorch
You can easily tokenize, convert and pad this dataset to be usable in pytorch with:
from transformers import AutoTokenizer
import torch
from torch.nn.utils.rnn import pad_sequence
tokenizer = AutoTokenizer.from_pretrained("bert-base-uncased")
def tokenize(sample):
sample["card_name"] = tokenizer(sample["card_name"])["input_ids"]
sample["type_line"] = tokenizer(sample["type_line"])["input_ids"]
sample["oracle_text"] = tokenizer(sample["oracle_text"])["input_ids"]
return sample
tokenized_dataset = train_dataset.map(tokenize)
def collate_fn(sequences):
# Pad the sequences to the maximum length in the batch
card_names = [torch.tensor(sequence['card_name']) for sequence in sequences]
type_line = [torch.tensor(sequence['type_line']) for sequence in sequences]
oracle_text = [torch.tensor(sequence['oracle_text']) for sequence in sequences]
padded_card_name = pad_sequence(card_names, batch_first=True, padding_value=0)
padded_type_line = pad_sequence(type_line, batch_first=True, padding_value=0)
padded_oracle_text = pad_sequence(oracle_text, batch_first=True, padding_value=0)
return {'card_name': padded_card_name, 'type_line': padded_type_line, 'padded_oracle_text': padded_oracle_text}
loader = torch.utils.data.DataLoader(tokenized_dataset, collate_fn=collate_fn, batch_size=4)
for e in loader:
print(e)
break
# Will output:
# {'card_name': tensor([[ 101, 10694, 12369, 102, 0],
# [ 101, 3704, 9881, 102, 0],
# [ 101, 22639, 20066, 7347, 102],
# [ 101, 25697, 1997, 6019, 102]]),
# 'type_line': tensor([[ 101, 2061, 19170, 2854, 102, 0, 0],
# [ 101, 6492, 1517, 4743, 102, 0, 0],
# [ 101, 6492, 1517, 22639, 102, 0, 0],
# [ 101, 4372, 14856, 21181, 1517, 15240, 102]]),
# 'padded_oracle_text': [ommited for readability])}
- Downloads last month
- 108