()
| 1083 | } |
| 1084 | |
| 1085 | public boolean hasXInAnyCostPart() { |
| 1086 | boolean xCost = false; |
| 1087 | for (CostPart p : this.getCostParts()) { |
| 1088 | if (p instanceof CostPartMana) { |
| 1089 | if (((CostPartMana) p).getAmountOfX() > 0) { |
| 1090 | xCost = true; |
| 1091 | break; |
| 1092 | } |
| 1093 | } else if (p.getAmount().equals("X")) { |
| 1094 | xCost = true; |
| 1095 | break; |
| 1096 | } |
| 1097 | } |
| 1098 | return xCost; |
| 1099 | } |
| 1100 | |
| 1101 | public Integer getMaxForNonManaX(final SpellAbility ability, final Player payer, final boolean effect) { |
| 1102 | Integer val = null; |
no test coverage detected