mirror of
https://github.com/magefree/mage.git
synced 2026-01-09 12:22:10 -08:00
* M15 - Added 11 blue cards.
This commit is contained in:
parent
0120808ef8
commit
08d0a3662c
19 changed files with 1219 additions and 25 deletions
|
|
@ -240,18 +240,24 @@ public class ObjectColor implements Serializable, Copyable<ObjectColor>, Compara
|
|||
}
|
||||
|
||||
public boolean contains(ObjectColor color) {
|
||||
if (this == color)
|
||||
if (this == color) {
|
||||
return true;
|
||||
if (color.white & this.white)
|
||||
}
|
||||
if (color.white & this.white) {
|
||||
return true;
|
||||
if (color.blue & this.blue)
|
||||
}
|
||||
if (color.blue & this.blue) {
|
||||
return true;
|
||||
if (color.black & this.black)
|
||||
}
|
||||
if (color.black & this.black) {
|
||||
return true;
|
||||
if (color.red & this.red)
|
||||
}
|
||||
if (color.red & this.red) {
|
||||
return true;
|
||||
if (color.green & this.green)
|
||||
}
|
||||
if (color.green & this.green) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -198,6 +198,9 @@ public class LookLibraryAndPickControllerEffect extends LookLibraryControllerEff
|
|||
|
||||
@Override
|
||||
public String getText(Mode mode) {
|
||||
if (staticText != null && !staticText.isEmpty()) {
|
||||
return staticText;
|
||||
}
|
||||
StringBuilder sb = new StringBuilder();
|
||||
if (numberToPick.calculate(null, null) > 0) {
|
||||
|
||||
|
|
|
|||
|
|
@ -141,6 +141,9 @@ public class BecomesCreatureTargetEffect extends ContinuousEffectImpl {
|
|||
|
||||
@Override
|
||||
public String getText(Mode mode) {
|
||||
if (staticText != null && !staticText.isEmpty()) {
|
||||
return staticText;
|
||||
}
|
||||
StringBuilder sb = new StringBuilder();
|
||||
Target target = mode.getTargets().get(0);
|
||||
if(target.getMaxNumberOfTargets() > 1){
|
||||
|
|
|
|||
|
|
@ -74,6 +74,9 @@ public class LoseAllAbilitiesTargetEffect extends ContinuousEffectImpl {
|
|||
|
||||
@Override
|
||||
public String getText(Mode mode) {
|
||||
if (staticText != null && !staticText.isEmpty()) {
|
||||
return staticText;
|
||||
}
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("Target ").append(mode.getTargets().get(0).getTargetName()).append(" loses all abilities ").append(duration.toString());
|
||||
return sb.toString();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue