mirror of
https://github.com/correl/mage.git
synced 2025-03-20 09:19:21 -09:00
Merge pull request #2666 from spjspj/master
spjspj - Final.. update to edh Power Level.
This commit is contained in:
commit
6b0eb6397e
1 changed files with 12 additions and 2 deletions
|
@ -249,6 +249,7 @@ public class Commander extends Constructed {
|
||||||
boolean miracle = false;
|
boolean miracle = false;
|
||||||
boolean overload = false;
|
boolean overload = false;
|
||||||
boolean persist = false;
|
boolean persist = false;
|
||||||
|
boolean preventDamage = false;
|
||||||
boolean proliferate = false;
|
boolean proliferate = false;
|
||||||
boolean protection = false;
|
boolean protection = false;
|
||||||
boolean putUnderYourControl = false;
|
boolean putUnderYourControl = false;
|
||||||
|
@ -261,6 +262,7 @@ public class Commander extends Constructed {
|
||||||
boolean storm = false;
|
boolean storm = false;
|
||||||
boolean trample = false;
|
boolean trample = false;
|
||||||
boolean tutor = false;
|
boolean tutor = false;
|
||||||
|
boolean tutorBasic = false;
|
||||||
boolean twiceAs = false;
|
boolean twiceAs = false;
|
||||||
boolean unblockable = false;
|
boolean unblockable = false;
|
||||||
boolean undying = false;
|
boolean undying = false;
|
||||||
|
@ -302,6 +304,7 @@ public class Commander extends Constructed {
|
||||||
miracle |= s.contains("miracle");
|
miracle |= s.contains("miracle");
|
||||||
overload |= s.contains("overload");
|
overload |= s.contains("overload");
|
||||||
persist |= s.contains("persist");
|
persist |= s.contains("persist");
|
||||||
|
preventDamage |= s.contains("prevent") && s.contains("all") && s.contains("damage");
|
||||||
proliferate |= s.contains("proliferate");
|
proliferate |= s.contains("proliferate");
|
||||||
protection |= s.contains("protection");
|
protection |= s.contains("protection");
|
||||||
putUnderYourControl |= s.contains("put") && s.contains("under your control");
|
putUnderYourControl |= s.contains("put") && s.contains("under your control");
|
||||||
|
@ -313,7 +316,8 @@ public class Commander extends Constructed {
|
||||||
sliver |= s.contains("sliver");
|
sliver |= s.contains("sliver");
|
||||||
storm |= s.contains("storm");
|
storm |= s.contains("storm");
|
||||||
trample |= s.contains("trample");
|
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");
|
twiceAs |= s.contains("twice that many") || s.contains("twice as much");
|
||||||
unblockable |= s.contains("can't be blocked");
|
unblockable |= s.contains("can't be blocked");
|
||||||
undying |= s.contains("undying");
|
undying |= s.contains("undying");
|
||||||
|
@ -381,6 +385,9 @@ public class Commander extends Constructed {
|
||||||
if (mayCastForFree) {
|
if (mayCastForFree) {
|
||||||
thisMaxPower = Math.max(thisMaxPower, 4);
|
thisMaxPower = Math.max(thisMaxPower, 4);
|
||||||
}
|
}
|
||||||
|
if (preventDamage) {
|
||||||
|
thisMaxPower = Math.max(thisMaxPower, 4);
|
||||||
|
}
|
||||||
if (proliferate) {
|
if (proliferate) {
|
||||||
thisMaxPower = Math.max(thisMaxPower, 4);
|
thisMaxPower = Math.max(thisMaxPower, 4);
|
||||||
}
|
}
|
||||||
|
@ -483,6 +490,9 @@ public class Commander extends Constructed {
|
||||||
if (trample) {
|
if (trample) {
|
||||||
thisMaxPower = Math.max(thisMaxPower, 1);
|
thisMaxPower = Math.max(thisMaxPower, 1);
|
||||||
}
|
}
|
||||||
|
if (tutorBasic) {
|
||||||
|
thisMaxPower = Math.max(thisMaxPower, 1);
|
||||||
|
}
|
||||||
|
|
||||||
// Planeswalkers
|
// Planeswalkers
|
||||||
if (card.getCardType().contains(CardType.PLANESWALKER)) {
|
if (card.getCardType().contains(CardType.PLANESWALKER)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue