From fe02e3fba3bdf727517471a6e7d97ad7691c779d Mon Sep 17 00:00:00 2001 From: spjspj Date: Tue, 12 Dec 2017 01:02:51 +1100 Subject: [PATCH] Fix points for Aus 7pt Highlander --- .../src/mage/deck/AusHighlander.java | 77 +++++++++---------- 1 file changed, 37 insertions(+), 40 deletions(-) diff --git a/Mage.Server.Plugins/Mage.Deck.Constructed/src/mage/deck/AusHighlander.java b/Mage.Server.Plugins/Mage.Deck.Constructed/src/mage/deck/AusHighlander.java index aad84f3839..caae0aed3f 100644 --- a/Mage.Server.Plugins/Mage.Deck.Constructed/src/mage/deck/AusHighlander.java +++ b/Mage.Server.Plugins/Mage.Deck.Constructed/src/mage/deck/AusHighlander.java @@ -114,7 +114,39 @@ public class AusHighlander extends Constructed { int totalPoints = 0; for (Map.Entry entry : counts.entrySet()) { String cn = entry.getKey(); - + if (cn.equals("Ancestral Recall") + || cn.equals("Black Lotus") + || cn.equals("Time Vault")) { + totalPoints += 4; + invalid.put(cn, "4 points"); + } + if (cn.equals("Demonic Tutor") + || cn.equals("Imperial Seal") + || cn.equals("Mox Emerald") + || cn.equals("Mox Jet") + || cn.equals("Mox Pearl") + || cn.equals("Mox Ruby") + || cn.equals("Sol Ring") + || cn.equals("Time Walk") + || cn.equals("Tinker") + || cn.equals("Vampiric Tutor") + || cn.equals("Yawgmoth's Will") + || cn.equals("Mox Sapphire.")) { + totalPoints += 3; + invalid.put(cn, "3 points"); + } + if (cn.equals("Channel") + || cn.equals("Dig Through Time") + || cn.equals("Library of Alexandria") + || cn.equals("Mana Crypt") + || cn.equals("Mystical Tutor") + || cn.equals("Protean Hulk") + || cn.equals("Skullclamp") + || cn.equals("Strip Mine") + || cn.equals("Tolarian Academy.")) { + totalPoints += 2; + invalid.put(cn, "2 points"); + } if (cn.equals("Back to Basics") || cn.equals("Balance") || cn.equals("Birthing Pod") @@ -139,8 +171,8 @@ public class AusHighlander extends Constructed { || cn.equals("Natural Order") || cn.equals("Oath of Druids") || cn.equals("Personal Tutor") + || cn.equals("Sensei's Divining Top") || cn.equals("Snapcaster Mage") - || cn.equals("Steelshaper's Gift") || cn.equals("Stoneforge Mystic") || cn.equals("Survival of the Fittest") || cn.equals("Tainted Pact") @@ -151,50 +183,15 @@ public class AusHighlander extends Constructed { || cn.equals("Umezawa's Jitte") || cn.equals("Wasteland") || cn.equals("Wheel of Fortune") - || cn.equals("Worldly Tutor") - || cn.equals("Yawgmoth's Bargain")) { + || cn.equals("Yawgmoth's Bargain") + || cn.equals("Worldly Tutor")) { totalPoints += 1; invalid.put(cn, "1 point"); } - - if (cn.equals("Channel") - || cn.equals("Dig Through Time") - || cn.equals("Library of Alexandria") - || cn.equals("Mana Crypt") - || cn.equals("Mox Emerald") - || cn.equals("Mox Jet") - || cn.equals("Mox Pearl") - || cn.equals("Mox Ruby") - || cn.equals("Mox Sapphire") - || cn.equals("Mystical Tutor") - || cn.equals("Protean Hulk") - || cn.equals("Skullclamp") - || cn.equals("Strip Mine") - || cn.equals("Tolarian Academy")) { - totalPoints += 2; - invalid.put(cn, "2 points"); - } - - if (cn.equals("Demonic Tutor") - || cn.equals("Imperial Seal") - || cn.equals("Sol Ring") - || cn.equals("Time Walk") - || cn.equals("Tinker") - || cn.equals("Vampiric Tutor") - || cn.equals("Yawgmoth's Will")) { - totalPoints += 3; - invalid.put(cn, "3 points"); - } - - if (cn.equals("Ancestral Recall") - || cn.equals("Black Lotus") - || cn.equals("Time Vault")) { - totalPoints += 4; - invalid.put(cn, "4 points"); - } } if (totalPoints > 7) { invalid.put("Total points too high", "Your calculated point total was " + totalPoints); + invalid.put("Only you can see this!", "Your opponents will not be able to see this message or what cards are in your deck!"); valid = false; } return valid;