From 8680ab212fb429b98111ee4473f4e73bfcf9cd46 Mon Sep 17 00:00:00 2001 From: spjspj Date: Thu, 8 Dec 2016 17:08:10 +1100 Subject: [PATCH] spjspj - Final.. update to edh Power Level. --- .../src/mage/deck/Commander.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Mage.Server.Plugins/Mage.Deck.Constructed/src/mage/deck/Commander.java b/Mage.Server.Plugins/Mage.Deck.Constructed/src/mage/deck/Commander.java index 66da5a90c5..1d35210ae5 100644 --- a/Mage.Server.Plugins/Mage.Deck.Constructed/src/mage/deck/Commander.java +++ b/Mage.Server.Plugins/Mage.Deck.Constructed/src/mage/deck/Commander.java @@ -249,6 +249,7 @@ public class Commander extends Constructed { boolean miracle = false; boolean overload = false; boolean persist = false; + boolean preventDamage = false; boolean proliferate = false; boolean protection = false; boolean putUnderYourControl = false; @@ -261,6 +262,7 @@ public class Commander extends Constructed { boolean storm = false; boolean trample = false; boolean tutor = false; + boolean tutorBasic = false; boolean twiceAs = false; boolean unblockable = false; boolean undying = false; @@ -302,7 +304,8 @@ public class Commander extends Constructed { miracle |= s.contains("miracle"); overload |= s.contains("overload"); persist |= s.contains("persist"); - proliferate |= s.contains("proliferate"); + preventDamage |= s.contains("prevent") && s.contains("all") && s.contains("damage"); + proliferate |= s.contains("proliferate"); protection |= s.contains("protection"); putUnderYourControl |= s.contains("put") && s.contains("under your control"); retrace |= s.contains("retrace"); @@ -313,7 +316,8 @@ public class Commander extends Constructed { sliver |= s.contains("sliver"); storm |= s.contains("storm"); trample |= s.contains("trample"); - tutor |= s.contains("search your library"); + tutor |= s.contains("search your library") && !s.contains("basic land"); + tutorBasic |= s.contains("search your library") && s.contains("basic land"); twiceAs |= s.contains("twice that many") || s.contains("twice as much"); unblockable |= s.contains("can't be blocked"); undying |= s.contains("undying"); @@ -381,6 +385,9 @@ public class Commander extends Constructed { if (mayCastForFree) { thisMaxPower = Math.max(thisMaxPower, 4); } + if (preventDamage) { + thisMaxPower = Math.max(thisMaxPower, 4); + } if (proliferate) { thisMaxPower = Math.max(thisMaxPower, 4); } @@ -483,6 +490,9 @@ public class Commander extends Constructed { if (trample) { thisMaxPower = Math.max(thisMaxPower, 1); } + if (tutorBasic) { + thisMaxPower = Math.max(thisMaxPower, 1); + } // Planeswalkers if (card.getCardType().contains(CardType.PLANESWALKER)) {