mirror of
https://github.com/magefree/mage.git
synced 2026-01-23 03:39:54 -08:00
* Reworked some parts of transform handling.
This commit is contained in:
parent
210bbeeda7
commit
8564ebbbc5
1 changed files with 7 additions and 7 deletions
|
|
@ -14,6 +14,7 @@ import org.apache.log4j.Logger;
|
||||||
* @author North
|
* @author North
|
||||||
*/
|
*/
|
||||||
public class MockCard extends CardImpl {
|
public class MockCard extends CardImpl {
|
||||||
|
|
||||||
// Needs to be here, as it is normally calculated from the
|
// Needs to be here, as it is normally calculated from the
|
||||||
// PlaneswalkerEntersWithLoyaltyAbility of the card... but the MockCard
|
// PlaneswalkerEntersWithLoyaltyAbility of the card... but the MockCard
|
||||||
// only has MockAbilities.
|
// only has MockAbilities.
|
||||||
|
|
@ -30,7 +31,6 @@ public class MockCard extends CardImpl {
|
||||||
this.subtype = card.getSubTypes();
|
this.subtype = card.getSubTypes();
|
||||||
this.supertype = card.getSupertypes();
|
this.supertype = card.getSupertypes();
|
||||||
|
|
||||||
|
|
||||||
this.usesVariousArt = card.usesVariousArt();
|
this.usesVariousArt = card.usesVariousArt();
|
||||||
|
|
||||||
this.manaCost = new ManaCostsImpl(join(card.getManaCosts()));
|
this.manaCost = new ManaCostsImpl(join(card.getManaCosts()));
|
||||||
|
|
@ -43,7 +43,7 @@ public class MockCard extends CardImpl {
|
||||||
this.splitCard = card.isSplitCard();
|
this.splitCard = card.isSplitCard();
|
||||||
this.flipCard = card.isFlipCard();
|
this.flipCard = card.isFlipCard();
|
||||||
|
|
||||||
this.canTransform = card.isDoubleFaced();
|
this.transformable = card.isDoubleFaced();
|
||||||
this.nightCard = card.isNightCard();
|
this.nightCard = card.isNightCard();
|
||||||
if (card.getSecondSideName() != null && !card.getSecondSideName().isEmpty()) {
|
if (card.getSecondSideName() != null && !card.getSecondSideName().isEmpty()) {
|
||||||
this.secondSideCard = new MockCard(CardRepository.instance.findCard(card.getSecondSideName()));
|
this.secondSideCard = new MockCard(CardRepository.instance.findCard(card.getSecondSideName()));
|
||||||
|
|
@ -63,7 +63,7 @@ public class MockCard extends CardImpl {
|
||||||
}
|
}
|
||||||
|
|
||||||
this.flipCardName = card.getFlipCardName();
|
this.flipCardName = card.getFlipCardName();
|
||||||
for(String ruleText: card.getRules()) {
|
for (String ruleText : card.getRules()) {
|
||||||
this.addAbility(textAbilityFromString(ruleText));
|
this.addAbility(textAbilityFromString(ruleText));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue