aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEduardo Pedroni <ep625@york.ac.uk>2015-05-31 13:38:58 +0200
committerEduardo Pedroni <ep625@york.ac.uk>2015-05-31 13:38:58 +0200
commitc371723a3b81a0b269e1bd73f749e883de1a2dc3 (patch)
tree86aee1a3ba92b540e7aafb047f3fce0441a03fdc
parent46609b49b4b1e32ce058bf29d458563451d58259 (diff)
Adding a few more tests, travis should work now
-rw-r--r--.travis.yml2
-rwxr-xr-xfulltest.sh2
-rwxr-xr-xtest_coecon.py0
-rw-r--r--testcards/hydra367
-rw-r--r--testcards/nightmare1004
5 files changed, 1373 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index c2a5f06..46f140d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -5,4 +5,4 @@ python:
install: pip install lxml requests
# command to run tests, e.g. python setup.py test
#script: python -m unittest test_shivandragon test_callow test_cardclass test_sorin
-script: fulltest.sh
+script: ./fulltest.sh
diff --git a/fulltest.sh b/fulltest.sh
index 03891b4..655bca6 100755
--- a/fulltest.sh
+++ b/fulltest.sh
@@ -1,3 +1,3 @@
#!/usr/bin/env zsh
-python -m unittest test_shivandragon test_callow test_cardclass test_sorin test_island test_shoal
+python -m unittest test_shivandragon test_callow test_cardclass test_sorin test_island test_shoal test_coecon
diff --git a/test_coecon.py b/test_coecon.py
new file mode 100755
index 0000000..e69de29
--- /dev/null
+++ b/test_coecon.py
diff --git a/testcards/hydra b/testcards/hydra
new file mode 100644
index 0000000..14a6559
--- /dev/null
+++ b/testcards/hydra
@@ -0,0 +1,367 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html lang="en">
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+
+ <title>Khalni Hydra (Rise of the Eldrazi)</title>
+ <style type="text/css">
+ <!--
+ body {background: #fafafa url(http://magiccards.info/images/bg.gif) repeat-x;margin: 1em 1.5em;}
+ body,td,th {font: 0.9em/1.2em Verdana;color: #444;}
+ th {text-align: left; font-weight: bold;}
+ p {margin: 0.5em 0;}
+ a {color: #4666BC;}
+ a:hover {color: #333;background-color: #ff0;}
+ a:active {text-decoration: none;}
+ a:visited {color: #283C71;}
+ li.legal {color: #216728;}
+ li.restricted {color: #B98420;}
+ li.banned {color: #672121;}
+ li.reserve {color: #4F55CC;}
+ p.ctext {background-color: #fff;padding: 4px;}
+ p.otext {background-color: #fff;padding: 4px;}
+ div.oo {margin-left: 0em; padding: 0.5em 0 0 0; border: 1px solid #bbb; font-size: 75%;line-height: 100%;}
+ div.oo span {padding: 4px;}
+ div.oo p {margin: 0.5em 0 0 0;}
+ tr.odd {background-color: #e0e0e0;}
+ tr.even {background-color: #fafafa;}
+ #searchhelper td {line-height: 150%;vertical-align: middle;border-bottom: 1px dotted #999; padding: 5px 5px 5px 0;}
+ #searchhelper label {font-weight: bold;}
+ #searchhelper label.sl {font-weight: normal;}
+ #searchhelper table td {border: none; padding: 0; font-size: 1em;}
+ span.missing {color: #aaa;font-weight:bold;font-style:italic;}
+ dt {font-weight: bold; font-size: 110%; margin: 1em 0 0.5em 0;}
+ table#nav {font-size: 90%;}
+ ul {padding-left: 2em;}
+ .flag {vertical-align:-10%;}
+ .flag2 {vertical-align:-20%;}
+ .addition {color: red;}
+ a.ruleanchor {text-decoration: none; color: #E8DA58;}
+ li:target {background: #FAF7DC;}
+ -->
+ </style>
+ <script type="text/javascript">
+ <!--
+ function preventFocus() { isTop = false; }
+ function focusForm() { if (isTop && document.f) { document.f.q.select(); } }
+ var isTop = true;
+ window.onscroll = preventFocus;
+ window.onload = focusForm;
+ // -->
+ </script>
+ <link rel="search" type="application/opensearchdescription+xml" title="MagicCards.Info" href="/opensearch.xml">
+</head>
+<body>
+<table width="100%" cellpadding="0" cellspacing="0" id="nav">
+ <tr>
+ <td>
+ <img src="http://magiccards.info/images/en.gif" alt="English" width="16" height="11" class="flag2">
+ <a href="/">Home</a>,
+ <a href="/random.html">Random</a>,
+ <a href="/art.html">Art Game</a>,
+ <a href="/search.html"><b>Advanced</b></a>,
+ <a href="/extras.html">Extras</a>,
+ <a href="/rules.html">Rules</a>,
+ <a href="/about.html">About</a>.
+ </td>
+ <td align="right">
+ Sets:
+ <a href="/dtk/en.html">Dragons of Tarkir</a>, <a href="/frf/en.html">Fate Reforged</a>, <a href="/m15/en.html">Magic 2015</a>, <a href="/cns/en.html">Conspiracy</a>
+ &gt; <a href="/sitemap.html"><b>All Sets</b></a>
+ </td>
+ </tr>
+</table>
+<hr>
+<form method="GET" action="/query" style="font-size: 1.5em;" name="f">
+<table border="0" cellpadding="0" cellspacing="0" width="100%" align="center">
+ <tr>
+ <td nowrap="nowrap">
+ <label for="q">Query:</label>
+ <input type="text" name="q" id="q" size="30" value="" style="font-size: 1em;" tabindex="1">
+
+ </td>
+ <td align="right">
+ <select name="v" onchange="this.form.submit();">
+ <optgroup label="Select Output Format:">
+
+ <option value="card" selected="selected">View as Cards with Scans</option>
+ <option value="olist">View as a List (Oracle)</option>
+ <option value="list">View as Checklist</option>
+ <option value="scan">View as Scans only</option>
+ <option value="spoiler">View as a Spoiler</option>
+ </optgroup>
+ </select>
+ <select name="s" onchange="this.form.submit();">
+ <optgroup label="Select Sort Order:">
+
+ <option value="cname" selected="selected">Sort by Name &gt; Edition</option>
+ <option value="color">Sort by Color &gt; Name</option>
+ <option value="otype">Sort by Type &gt; Name</option>
+ <option value="cmc">Sort by Converted Mana Cost &gt; Name</option>
+ <option value="pow">Sort by Power &gt; Name</option>
+ <option value="tou">Sort by Toughness &gt; Name</option>
+ <option value="random">Sort by Random</option>
+ <option value="edition">Sort by Edition &gt; Name</option>
+ <option value="issue">Sort by Edition &gt; Collector's Number</option>
+ </optgroup>
+ </select>
+ <input type="submit" value="Search">
+ </td>
+ </tr>
+</table>
+</form>
+<hr>
+
+
+
+<table border="0" cellpadding="0" cellspacing="0" width="100%">
+<tr>
+ <td align="left" width="35%">
+
+
+ &larr; <a href="/roe/en/191.html">Kazandu Tuskcaller</a>
+
+ </td>
+ <td align="center" width="30%">
+ <a href="/roe/en.html">Rise of the Eldrazi</a>
+ </td>
+ <td align="right" width="35%">
+
+
+ <a href="/roe/en/193.html">Kozilek's Predator</a> &rarr;
+
+ </td>
+</tr>
+</table>
+<hr />
+
+<table border="0" cellpadding="0" cellspacing="0" width="100%" align="center" style="margin: 0 0 0.5em 0;">
+ <tr>
+ <td width="312" valign="top">
+ <script type="text/javascript" src="http://partner.tcgplayer.com/x3/mchl.ashx?pk=MAGCINFO&amp;sid=34886"></script>
+ <img src="http://magiccards.info/scans/en/roe/192.jpg"
+ alt="Khalni Hydra" width="312" height="445" style="border: 1px solid black;">
+ </td>
+ <td valign="top" style="padding: 0.5em;" width="70%">
+ <span style="font-size: 1.5em;">
+ <a href="/roe/en/192.html">Khalni Hydra</a>
+ <img src="http://magiccards.info/images/en.gif" alt="English"
+ width="16" height="11" class="flag">
+
+ </span>
+
+
+ <p>Creature — Hydra 8/8,
+ GGGGGGGG (8)
+ </p>
+ <p class="ctext"><b>Khalni Hydra costs {G} less to cast for each green creature you control.<br><br>Trample</b></p>
+
+
+ <p><i>"In ages past, bargains were struck and promises were made. Now we must collect on our debt. Begin the hymns."<br>—Moruul, Khalni druid</i></p>
+ <p>Illus. Todd Lockwood</p>
+ <p><b>Gatherer Card Rulings<a href="http://gatherer.wizards.com/Pages/Card/Details.aspx?multiverseid=193551">?</a>, Legality<a href="http://www.wizards.com/Magic/TCG/Resources.aspx?x=judge/resources/banned">?</a></b></p>
+ <ul><li><b>6/15/2010</b>: For the purpose of determining the cost reduction, the number of green creatures you control is checked as you cast <u>Khalni Hydra</u>, before your last chance to activate mana abilities to pay for it. For example, if you control Wild Cantor (a red and green creature with the ability "Sacrifice Wild Cantor: Add one mana of any color to your mana pool") as you cast <u>Khalni Hydra</u>, first the cost to cast <u>Khalni Hydra</u> is reduced by {G}, then you could sacrifice Wild Cantor for mana to help pay for it.</li><li><b>6/15/2010</b>: <u>Khalni Hydra</u>'s cost reduction effect doesn't change its mana cost or converted mana cost.</li><li><b>6/15/2010</b>: If an effect (such as the one from Lodestone Golem) imposes an additional generic mana cost to casting <u>Khalni Hydra</u>, the Hydra's ability will reduce it too. It'll reduce the amount of green mana you need to spend first, though.</li></ul>
+ <ul>
+
+
+ <li class="legal">Legal in Vintage (Type 1)</li>
+
+
+ <li class="legal">Legal in Legacy (Type 1.5)</li>
+
+
+
+
+
+ <!--<li class="legal">Legal in Block Constructed</li>-->
+
+
+ <li class="legal">Legal in Classic (MTGO)</li>
+
+ <li class="legal">Legal in Commander</li>
+
+ <li class="legal">Legal in Modern</li>
+
+ </ul>
+ </td>
+ <td valign="top" style="padding: 0 0.5em;" width="30%">
+ <small>
+
+
+
+
+ <u><b>Printings:</b></u><br>
+
+
+
+ <b>#192 (Todd Lockwood)</b><br>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <br><u><b>Editions:</b></u><br>
+
+
+
+ <img src="http://magiccards.info/images/en.gif" alt="English"
+ width="16" height="11" class="flag2">
+
+ <b>Rise of the Eldrazi (Mythic Rare)</b><br>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <br><u><b>Languages:</b></u><br>
+
+
+
+
+
+ <img src="http://magiccards.info/images/de.gif" alt="German"
+ width="16" height="11" class="flag2">
+ <a href="/roe/de/192.html">Khalni-Hydra</a><br>
+
+
+
+
+ <img src="http://magiccards.info/images/fr.gif" alt="French"
+ width="16" height="11" class="flag2">
+ <a href="/roe/fr/192.html">Hydre de Khalni</a><br>
+
+
+
+
+ <img src="http://magiccards.info/images/it.gif" alt="Italian"
+ width="16" height="11" class="flag2">
+ <a href="/roe/it/192.html">Idra di Khalni</a><br>
+
+
+
+
+ <img src="http://magiccards.info/images/es.gif" alt="Spanish"
+ width="16" height="11" class="flag2">
+ <a href="/roe/es/192.html">Hidra de Khalni</a><br>
+
+
+
+
+ <img src="http://magiccards.info/images/pt.gif" alt="Portuguese"
+ width="16" height="11" class="flag2">
+ <a href="/roe/pt/192.html">Hidra de Khalni</a><br>
+
+
+
+
+ <img src="http://magiccards.info/images/jp.gif" alt="Japanese"
+ width="16" height="11" class="flag2">
+ <a href="/roe/jp/192.html">カルニのハイドラ</a><br>
+
+
+
+
+ <img src="http://magiccards.info/images/cn.gif" alt="Simplified Chinese"
+ width="16" height="11" class="flag2">
+ <a href="/roe/cn/192.html">坎尼多头龙</a><br>
+
+
+
+
+ <img src="http://magiccards.info/images/ru.gif" alt="Russian"
+ width="16" height="11" class="flag2">
+ <a href="/roe/ru/192.html">Гидра Кални</a><br>
+
+
+
+
+
+ <br><br>
+ <a href="/query?q=%2B%2Bo%21%22Khalni Hydra%22&amp;v=olist">all prints in all languages</a>
+ </small>
+ </td>
+ </tr>
+</table>
+
+<hr />
+<table border="0" cellpadding="0" cellspacing="0" width="95%">
+ <tr>
+ <td valign="top" width="50%">
+ <b>Rules Questions / Links</b><br>
+ <a href="http://magic.tcgplayer.com/db/magic_single_card.asp?cn=Khalni Hydra&amp;partner=MAGCINFO">View All Prices for Khalni Hydra</a><br>
+ <a href="http://magic.tcgplayer.com/db/deck_search_result.asp?CardName=Khalni Hydra&amp;partner=MAGCINFO">View Decks with Khalni Hydra</a><br>
+ <a href="http://crystalkeep.com/cgi-bin/magicsearch.cgi?cardName=Khalni Hydra">Crystal Keep Rulings Summaries</a><br>
+ <a href="http://www.google.com/search?hl=en&amp;q=%22Khalni Hydra%22+site%3Amtgsalvation.com+inurl%3Acranial">Cranial Insertion (MTG Salvation)</a><br>
+
+ <br>
+ <b>MOTL Price Lists</b><br>
+ <a href="http://classic.magictraders.com/cgi-bin/query.cgi?list=magic&amp;field=0&amp;operator=re&amp;target=Khalni Hydra">Non-Foil</a> &middot;
+ <a href="http://classic.magictraders.com/cgi-bin/query.cgi?list=magic-foils&amp;field=0&amp;operator=re&amp;target=Khalni Hydra">Foil</a> &middot;
+ <a href="http://classic.magictraders.com/cgi-bin/query.cgi?list=magic-online&amp;field=0&amp;operator=re&amp;target=Khalni Hydra">MTGO</a><br><br>
+ <b>Print Proxies:</b><br><a href="/proxy?add=scans/en/roe/192&amp;n=1&amp;back=roe/en/192">[ +1 ]</a> <a href="/proxy?add=scans/en/roe/192&amp;n=2&amp;back=roe/en/192">[ +2 ]</a> <a href="/proxy?add=scans/en/roe/192&amp;n=3&amp;back=roe/en/192">[ +3 ]</a> <a href="/proxy?add=scans/en/roe/192&amp;n=4&amp;back=roe/en/192">[ +4 ]</a> </b> &middot; <a href="/proxy?back=roe/en/192">View</a> &middot; <a href="/proxy?clear=true&amp;back=roe/en/192">Clear</a><br><br>
+
+ <b>HTML link to this card</b>:<br><input size="60" value="&lt;a href=&quot;http://magiccards.info/roe/en/192.html&quot;&gt;Khalni Hydra&lt;/a&gt;" onclick="this.select()"><br>
+ <b>BBCode link to this card</b>:<br><input size="60" value="[url=http://magiccards.info/roe/en/192.html]Khalni Hydra[/url]" onclick="this.select()">
+ </td>
+ <td valign="top" width="50%">
+ <script type="text/javascript" src="http://partner.tcgplayer.com/x3/mcpl.ashx?pk=MAGCINFO&amp;sid=34886"></script>
+ </td>
+ </tr>
+</table>
+
+<hr />
+
+<br>
+<small style="color: #aaa;font-size: 0.6em;">
+ The information presented on this site about
+ <b>Magic: The Gathering</b>, both literal and graphical,
+ is copyrighted by Wizards of the Coast.<br>
+ This website is not produced, endorsed, supported,
+ or affiliated with Wizards of the Coast.<!-- <br>
+ <i>Release “Giant Spider”, June 2012</i> --></small>
+ <script type="text/javascript">
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-74661-5']);
+ _gaq.push(['_setDomainName', '.magiccards.info'])
+ _gaq.push(['_trackPageview']);
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ga);
+ })();
+ </script>
+</body>
+</html>
+
diff --git a/testcards/nightmare b/testcards/nightmare
new file mode 100644
index 0000000..d2d04de
--- /dev/null
+++ b/testcards/nightmare
@@ -0,0 +1,1004 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html lang="en">
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+
+ <title>Nightmare (Magic 2015)</title>
+ <style type="text/css">
+ <!--
+ body {background: #fafafa url(http://magiccards.info/images/bg.gif) repeat-x;margin: 1em 1.5em;}
+ body,td,th {font: 0.9em/1.2em Verdana;color: #444;}
+ th {text-align: left; font-weight: bold;}
+ p {margin: 0.5em 0;}
+ a {color: #4666BC;}
+ a:hover {color: #333;background-color: #ff0;}
+ a:active {text-decoration: none;}
+ a:visited {color: #283C71;}
+ li.legal {color: #216728;}
+ li.restricted {color: #B98420;}
+ li.banned {color: #672121;}
+ li.reserve {color: #4F55CC;}
+ p.ctext {background-color: #fff;padding: 4px;}
+ p.otext {background-color: #fff;padding: 4px;}
+ div.oo {margin-left: 0em; padding: 0.5em 0 0 0; border: 1px solid #bbb; font-size: 75%;line-height: 100%;}
+ div.oo span {padding: 4px;}
+ div.oo p {margin: 0.5em 0 0 0;}
+ tr.odd {background-color: #e0e0e0;}
+ tr.even {background-color: #fafafa;}
+ #searchhelper td {line-height: 150%;vertical-align: middle;border-bottom: 1px dotted #999; padding: 5px 5px 5px 0;}
+ #searchhelper label {font-weight: bold;}
+ #searchhelper label.sl {font-weight: normal;}
+ #searchhelper table td {border: none; padding: 0; font-size: 1em;}
+ span.missing {color: #aaa;font-weight:bold;font-style:italic;}
+ dt {font-weight: bold; font-size: 110%; margin: 1em 0 0.5em 0;}
+ table#nav {font-size: 90%;}
+ ul {padding-left: 2em;}
+ .flag {vertical-align:-10%;}
+ .flag2 {vertical-align:-20%;}
+ .addition {color: red;}
+ a.ruleanchor {text-decoration: none; color: #E8DA58;}
+ li:target {background: #FAF7DC;}
+ -->
+ </style>
+ <script type="text/javascript">
+ <!--
+ function preventFocus() { isTop = false; }
+ function focusForm() { if (isTop && document.f) { document.f.q.select(); } }
+ var isTop = true;
+ window.onscroll = preventFocus;
+ window.onload = focusForm;
+ // -->
+ </script>
+ <link rel="search" type="application/opensearchdescription+xml" title="MagicCards.Info" href="/opensearch.xml">
+</head>
+<body>
+<table width="100%" cellpadding="0" cellspacing="0" id="nav">
+ <tr>
+ <td>
+ <img src="http://magiccards.info/images/en.gif" alt="English" width="16" height="11" class="flag2">
+ <a href="/">Home</a>,
+ <a href="/random.html">Random</a>,
+ <a href="/art.html">Art Game</a>,
+ <a href="/search.html"><b>Advanced</b></a>,
+ <a href="/extras.html">Extras</a>,
+ <a href="/rules.html">Rules</a>,
+ <a href="/about.html">About</a>.
+ </td>
+ <td align="right">
+ Sets:
+ <a href="/dtk/en.html">Dragons of Tarkir</a>, <a href="/frf/en.html">Fate Reforged</a>, <a href="/m15/en.html">Magic 2015</a>, <a href="/cns/en.html">Conspiracy</a>
+ &gt; <a href="/sitemap.html"><b>All Sets</b></a>
+ </td>
+ </tr>
+</table>
+<hr>
+<form method="GET" action="/query" style="font-size: 1.5em;" name="f">
+<table border="0" cellpadding="0" cellspacing="0" width="100%" align="center">
+ <tr>
+ <td nowrap="nowrap">
+ <label for="q">Query:</label>
+ <input type="text" name="q" id="q" size="30" value="" style="font-size: 1em;" tabindex="1">
+
+ </td>
+ <td align="right">
+ <select name="v" onchange="this.form.submit();">
+ <optgroup label="Select Output Format:">
+
+ <option value="card" selected="selected">View as Cards with Scans</option>
+ <option value="olist">View as a List (Oracle)</option>
+ <option value="list">View as Checklist</option>
+ <option value="scan">View as Scans only</option>
+ <option value="spoiler">View as a Spoiler</option>
+ </optgroup>
+ </select>
+ <select name="s" onchange="this.form.submit();">
+ <optgroup label="Select Sort Order:">
+
+ <option value="cname" selected="selected">Sort by Name &gt; Edition</option>
+ <option value="color">Sort by Color &gt; Name</option>
+ <option value="otype">Sort by Type &gt; Name</option>
+ <option value="cmc">Sort by Converted Mana Cost &gt; Name</option>
+ <option value="pow">Sort by Power &gt; Name</option>
+ <option value="tou">Sort by Toughness &gt; Name</option>
+ <option value="random">Sort by Random</option>
+ <option value="edition">Sort by Edition &gt; Name</option>
+ <option value="issue">Sort by Edition &gt; Collector's Number</option>
+ </optgroup>
+ </select>
+ <input type="submit" value="Search">
+ </td>
+ </tr>
+</table>
+</form>
+<hr>
+
+
+
+<table border="0" cellpadding="0" cellspacing="0" width="100%">
+<tr>
+ <td align="left" width="35%">
+
+
+ &larr; <a href="/m15/en/275.html">Mahamoti Djinn</a>
+
+ </td>
+ <td align="center" width="30%">
+ <a href="/m15/en.html">Magic 2015</a>
+ </td>
+ <td align="right" width="35%">
+
+
+ <a href="/m15/en/277.html">Sengir Vampire</a> &rarr;
+
+ </td>
+</tr>
+</table>
+<hr />
+
+<table border="0" cellpadding="0" cellspacing="0" width="100%" align="center" style="margin: 0 0 0.5em 0;">
+ <tr>
+ <td width="312" valign="top">
+ <script type="text/javascript" src="http://partner.tcgplayer.com/x3/mchl.ashx?pk=MAGCINFO&amp;sid=90895"></script>
+ <img src="http://magiccards.info/scans/en/m15/276.jpg"
+ alt="Nightmare" width="312" height="445" style="border: 1px solid black;">
+ </td>
+ <td valign="top" style="padding: 0.5em;" width="70%">
+ <span style="font-size: 1.5em;">
+ <a href="/m15/en/276.html">Nightmare</a>
+ <img src="http://magiccards.info/images/en.gif" alt="English"
+ width="16" height="11" class="flag">
+
+ </span>
+
+
+ <p>Creature — Nightmare Horse */*,
+ 5B (6)
+ </p>
+ <p class="ctext"><b>Flying (This creature can't be blocked except by creatures with flying or reach.)<br><br>Nightmare's power and toughness are each equal to the number of Swamps you control.</b></p>
+
+
+ <p><i>The thunder of its hooves beats dreams into despair.</i></p>
+ <p>Illus. Vance Kovacs</p>
+ <p><b>Gatherer Card Rulings<a href="http://gatherer.wizards.com/Pages/Card/Details.aspx?multiverseid=383168">?</a>, Legality<a href="http://www.wizards.com/Magic/TCG/Resources.aspx?x=judge/resources/banned">?</a></b></p>
+ <ul><li><b>4/1/2008</b>: If you control 0 swamps, then the <u>Nightmare</u> has 0 toughness and will be put into its owner's graveyard as a state-based action right before the next player gains priority.</li><li><b>10/1/2009</b>: <u>Nightmare</u>'s power and toughness changes as the number of Swamps you control changes.</li><li><b>7/1/2013</b>: The ability that defines <u>Nightmare</u>’s power and toughness works everywhere, not just on the battlefield.</li><li><b>7/1/2013</b>: <u>Nightmare</u>’s ability counts all lands you control with the subtype Swamp, not just ones named Swamp.</li></ul>
+ <ul>
+
+
+ <li class="legal">Legal in Vintage (Type 1)</li>
+
+
+ <li class="legal">Legal in Legacy (Type 1.5)</li>
+
+ <li class="legal">Legal in Extended (Type 1.X)</li>
+
+ <li class="legal">Legal in Standard (Type 2)</li>
+
+
+
+
+ <li class="legal">Legal in Classic (MTGO)</li>
+
+ <li class="legal">Legal in Commander</li>
+
+ <li class="legal">Legal in Modern</li>
+
+ </ul>
+ </td>
+ <td valign="top" style="padding: 0 0.5em;" width="30%">
+ <small>
+
+
+
+
+ <u><b>Printings:</b></u><br>
+
+
+
+ <b>#276 (Vance Kovacs)</b><br>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <br><u><b>Editions:</b></u><br>
+
+
+
+ <img src="http://magiccards.info/images/en.gif" alt="English"
+ width="16" height="11" class="flag2">
+
+ <b>Magic 2015 (Rare)</b><br>
+
+
+
+
+
+ <img src="http://magiccards.info/images/en.gif" alt="English"
+ width="16" height="11" class="flag2">
+
+ <a href="/m14/en/108.html">Magic 2014 Core Set</a> (Rare)<br>
+
+
+
+
+
+ <img src="http://magiccards.info/images/en.gif" alt="English"
+ width="16" height="11" class="flag2">
+
+ <a href="/m10/en/107.html">Magic 2010</a> (Rare)<br>
+
+
+
+
+
+ <img src="http://magiccards.info/images/en.gif" alt="English"
+ width="16" height="11" class="flag2">
+
+ <a href="/10e/en/164.html">Tenth Edition</a> (Rare)<br>
+
+
+
+
+
+ <img src="http://magiccards.info/images/en.gif" alt="English"
+ width="16" height="11" class="flag2">
+
+ <a href="/9e/en/150.html">Ninth Edition</a> (Rare)<br>
+
+
+
+
+
+ <img src="http://magiccards.info/images/en.gif" alt="English"
+ width="16" height="11" class="flag2">
+
+ <a href="/8e/en/150.html">Eighth Edition</a> (Rare)<br>
+
+
+
+
+
+ <img src="http://magiccards.info/images/en.gif" alt="English"
+ width="16" height="11" class="flag2">
+
+ <a href="/7e/en/150.html">Seventh Edition</a> (Rare)<br>
+
+
+
+
+
+ <img src="http://magiccards.info/images/en.gif" alt="English"
+ width="16" height="11" class="flag2">
+
+ <a href="/6e/en/146.html">Classic Sixth Edition</a> (Rare)<br>
+
+
+
+
+
+ <img src="http://magiccards.info/images/en.gif" alt="English"
+ width="16" height="11" class="flag2">
+
+ <a href="/5e/en/46.html">Fifth Edition</a> (Rare)<br>
+
+
+
+
+
+ <img src="http://magiccards.info/images/en.gif" alt="English"
+ width="16" height="11" class="flag2">
+
+ <a href="/4e/en/34.html">Fourth Edition</a> (Rare)<br>
+
+
+
+
+
+ <img src="http://magiccards.info/images/en.gif" alt="English"
+ width="16" height="11" class="flag2">
+
+ <a href="/rv/en/28.html">Revised Edition</a> (Rare)<br>
+
+
+
+
+
+ <img src="http://magiccards.info/images/en.gif" alt="English"
+ width="16" height="11" class="flag2">
+
+ <a href="/cedi/en/27.html">International Collectors' Edition</a> (Rare)<br>
+
+
+
+
+
+ <img src="http://magiccards.info/images/en.gif" alt="English"
+ width="16" height="11" class="flag2">
+
+ <a href="/ced/en/27.html">Collector's Edition</a> (Rare)<br>
+
+
+
+
+
+ <img src="http://magiccards.info/images/en.gif" alt="English"
+ width="16" height="11" class="flag2">
+
+ <a href="/un/en/27.html">Unlimited Edition</a> (Rare)<br>
+
+
+
+
+
+ <img src="http://magiccards.info/images/en.gif" alt="English"
+ width="16" height="11" class="flag2">
+
+ <a href="/be/en/27.html">Limited Edition Beta</a> (Rare)<br>
+
+
+
+
+
+ <img src="http://magiccards.info/images/en.gif" alt="English"
+ width="16" height="11" class="flag2">
+
+ <a href="/al/en/27.html">Limited Edition Alpha</a> (Rare)<br>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <br><u><b>Languages:</b></u><br>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <img src="http://magiccards.info/images/de.gif" alt="German"
+ width="16" height="11" class="flag2">
+ <a href="/m15/de/276.html">Nachtmahr</a><br>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <img src="http://magiccards.info/images/fr.gif" alt="French"
+ width="16" height="11" class="flag2">
+ <a href="/m15/fr/276.html">Cheval de cauchemar</a><br>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <img src="http://magiccards.info/images/it.gif" alt="Italian"
+ width="16" height="11" class="flag2">
+ <a href="/m15/it/276.html">Incubo</a><br>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <img src="http://magiccards.info/images/es.gif" alt="Spanish"
+ width="16" height="11" class="flag2">
+ <a href="/m15/es/276.html">Pesadilla</a><br>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <img src="http://magiccards.info/images/pt.gif" alt="Portuguese"
+ width="16" height="11" class="flag2">
+ <a href="/m15/pt/276.html">Pesadelo</a><br>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <img src="http://magiccards.info/images/jp.gif" alt="Japanese"
+ width="16" height="11" class="flag2">
+ <a href="/m15/jp/276.html">夢魔</a><br>
+
+
+
+
+
+
+
+
+
+
+
+
+ <img src="http://magiccards.info/images/cn.gif" alt="Simplified Chinese"
+ width="16" height="11" class="flag2">
+ <a href="/m15/cn/276.html">梦魇</a><br>
+
+
+
+
+
+
+
+
+
+
+
+
+ <img src="http://magiccards.info/images/ru.gif" alt="Russian"
+ width="16" height="11" class="flag2">
+ <a href="/m15/ru/276.html">Кошмар</a><br>
+
+
+
+
+
+
+
+
+
+
+
+
+ <img src="http://magiccards.info/images/tw.gif" alt="Traditional Chinese"
+ width="16" height="11" class="flag2">
+ <a href="/m15/tw/276.html">夢魘</a><br>
+
+
+
+
+
+
+
+
+
+
+ <img src="http://magiccards.info/images/ko.gif" alt="Korean"
+ width="16" height="11" class="flag2">
+ <a href="/m15/ko/276.html">나이트메어</a><br>
+
+
+
+
+
+
+
+
+
+ <br><br>
+ <a href="/query?q=%2B%2Bo%21%22Nightmare%22&amp;v=olist">all prints in all languages</a>
+ </small>
+ </td>
+ </tr>
+</table>
+
+<hr />
+<table border="0" cellpadding="0" cellspacing="0" width="95%">
+ <tr>
+ <td valign="top" width="50%">
+ <b>Rules Questions / Links</b><br>
+ <a href="http://magic.tcgplayer.com/db/magic_single_card.asp?cn=Nightmare&amp;partner=MAGCINFO">View All Prices for Nightmare</a><br>
+ <a href="http://magic.tcgplayer.com/db/deck_search_result.asp?CardName=Nightmare&amp;partner=MAGCINFO">View Decks with Nightmare</a><br>
+ <a href="http://crystalkeep.com/cgi-bin/magicsearch.cgi?cardName=Nightmare">Crystal Keep Rulings Summaries</a><br>
+ <a href="http://www.google.com/search?hl=en&amp;q=%22Nightmare%22+site%3Amtgsalvation.com+inurl%3Acranial">Cranial Insertion (MTG Salvation)</a><br>
+
+ <br>
+ <b>MOTL Price Lists</b><br>
+ <a href="http://classic.magictraders.com/cgi-bin/query.cgi?list=magic&amp;field=0&amp;operator=re&amp;target=Nightmare">Non-Foil</a> &middot;
+ <a href="http://classic.magictraders.com/cgi-bin/query.cgi?list=magic-foils&amp;field=0&amp;operator=re&amp;target=Nightmare">Foil</a> &middot;
+ <a href="http://classic.magictraders.com/cgi-bin/query.cgi?list=magic-online&amp;field=0&amp;operator=re&amp;target=Nightmare">MTGO</a><br><br>
+ <b>Print Proxies:</b><br><a href="/proxy?add=scans/en/m15/276&amp;n=1&amp;back=m15/en/276">[ +1 ]</a> <a href="/proxy?add=scans/en/m15/276&amp;n=2&amp;back=m15/en/276">[ +2 ]</a> <a href="/proxy?add=scans/en/m15/276&amp;n=3&amp;back=m15/en/276">[ +3 ]</a> <a href="/proxy?add=scans/en/m15/276&amp;n=4&amp;back=m15/en/276">[ +4 ]</a> </b> &middot; <a href="/proxy?back=m15/en/276">View</a> &middot; <a href="/proxy?clear=true&amp;back=m15/en/276">Clear</a><br><br>
+
+ <b>HTML link to this card</b>:<br><input size="60" value="&lt;a href=&quot;http://magiccards.info/m15/en/276.html&quot;&gt;Nightmare&lt;/a&gt;" onclick="this.select()"><br>
+ <b>BBCode link to this card</b>:<br><input size="60" value="[url=http://magiccards.info/m15/en/276.html]Nightmare[/url]" onclick="this.select()">
+ </td>
+ <td valign="top" width="50%">
+ <script type="text/javascript" src="http://partner.tcgplayer.com/x3/mcpl.ashx?pk=MAGCINFO&amp;sid=90895"></script>
+ </td>
+ </tr>
+</table>
+
+<hr />
+
+<br>
+<small style="color: #aaa;font-size: 0.6em;">
+ The information presented on this site about
+ <b>Magic: The Gathering</b>, both literal and graphical,
+ is copyrighted by Wizards of the Coast.<br>
+ This website is not produced, endorsed, supported,
+ or affiliated with Wizards of the Coast.<!-- <br>
+ <i>Release “Giant Spider”, June 2012</i> --></small>
+ <script type="text/javascript">
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-74661-5']);
+ _gaq.push(['_setDomainName', '.magiccards.info'])
+ _gaq.push(['_trackPageview']);
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ga);
+ })();
+ </script>
+</body>
+</html>
+