Merge pull request #2663 from spjspj/master

spjspj - More updates to edh Power Level.
This commit is contained in:
spjspj 2016-12-08 10:55:26 +11:00 committed by GitHub
commit 2bec9aa4b1

View file

@ -225,6 +225,7 @@ public class Commander extends Constructed {
boolean cantBe = false;
boolean copy = false;
boolean costLessEach = false;
boolean createToken = false;
boolean dredge = false;
boolean exile = false;
boolean exileAll = false;
@ -275,6 +276,7 @@ public class Commander extends Constructed {
copy |= s.contains("copy");
costLessEach |= s.contains("cost") || s.contains("less") || s.contains("each");
counter |= s.contains("counter") && s.contains("target");
createToken |= s.contains("create") && s.contains("token");
destroy |= s.contains("destroy");
destroyAll |= s.contains("destroy all");
doesntUntap |= s.contains("doesn't untap");
@ -394,6 +396,9 @@ public class Commander extends Constructed {
if (anyNumberOfTarget) {
thisMaxPower = Math.max(thisMaxPower, 3);
}
if (createToken) {
thisMaxPower = Math.max(thisMaxPower, 3);
}
if (destroyAll) {
thisMaxPower = Math.max(thisMaxPower, 3);
}