forked from External/mage
[AKH] Fixed that Aftermath card images were shown wrongly rotated.
This commit is contained in:
parent
a8631c6ff3
commit
ed341528d9
66 changed files with 356 additions and 426 deletions
|
|
@ -8,6 +8,7 @@ import mage.cards.SplitCard;
|
|||
import mage.cards.repository.CardInfo;
|
||||
import mage.cards.repository.CardRepository;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SpellAbilityType;
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
@ -20,7 +21,7 @@ public class MockSplitCard extends SplitCard {
|
|||
card.getTypes().toArray(new CardType[0]),
|
||||
join(card.getManaCosts()),
|
||||
"",
|
||||
join(card.getRules()).contains("Fuse"));
|
||||
getSpellAbilityType(card));
|
||||
this.expansionSetCode = card.getSetCode();
|
||||
this.power = mageIntFromString(card.getPower());
|
||||
this.toughness = mageIntFromString(card.getToughness());
|
||||
|
|
@ -77,6 +78,16 @@ public class MockSplitCard extends SplitCard {
|
|||
}
|
||||
}
|
||||
|
||||
private static SpellAbilityType getSpellAbilityType(CardInfo cardInfo) {
|
||||
if (cardInfo.isSplitFuseCard()) {
|
||||
return SpellAbilityType.SPLIT_FUSED;
|
||||
}
|
||||
if (cardInfo.isSplitAftermathCard()) {
|
||||
return SpellAbilityType.SPLIT_AFTERMATH;
|
||||
}
|
||||
return SpellAbilityType.SPLIT;
|
||||
}
|
||||
|
||||
private static String join(List<String> strings) {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
for (String string : strings) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue