* Morph - Creatures cast with morph have now a converted mana cost of 0 on the stack.

This commit is contained in:
LevelX2 2014-11-11 23:58:08 +01:00
parent 7dbf265fd5
commit 4670fa377a
2 changed files with 7 additions and 4 deletions

View file

@ -611,7 +611,10 @@ public class Spell implements StackObject, Card {
*/
@Override
public int getConvertedManaCost() {
int cmc = 0;
int cmc = 0;
if (this.isMorphCard() && this.isFaceDown()) {
return 0;
}
for (Ability spellAbility: spellAbilities) {
int xMultiplier = 0;
for (String symbolString :spellAbility.getManaCosts().getSymbols()) {

View file

@ -176,7 +176,7 @@ public class Library implements Serializable {
}
public List<Card> getCards(Game game) {
List<Card> cards = new ArrayList<Card>();
List<Card> cards = new ArrayList<>();
for (UUID cardId: library) {
cards.add(game.getCard(cardId));
}
@ -184,7 +184,7 @@ public class Library implements Serializable {
}
public List<Card> getTopCards(Game game, int amount) {
List<Card> cards = new ArrayList<Card>();
List<Card> cards = new ArrayList<>();
Iterator<UUID> it = library.iterator();
int count = 0;
while(it.hasNext() && count < amount) {
@ -199,7 +199,7 @@ public class Library implements Serializable {
}
public Collection<Card> getUniqueCards(Game game) {
Map<String, Card> cards = new HashMap<String, Card>();
Map<String, Card> cards = new HashMap<>();
for (UUID cardId: library) {
Card card = game.getCard(cardId);
if (!cards.containsKey(card.getName())) {