mirror of
https://github.com/magefree/mage.git
synced 2025-12-28 14:32:06 -08:00
* Morph - Creatures cast with morph have now a converted mana cost of 0 on the stack.
This commit is contained in:
parent
7dbf265fd5
commit
4670fa377a
2 changed files with 7 additions and 4 deletions
|
|
@ -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()) {
|
||||
|
|
|
|||
|
|
@ -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())) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue