mirror of
https://github.com/magefree/mage.git
synced 2025-12-21 11:02:00 -08:00
move CardHelper::getColor to CardView::getColorText
This commit is contained in:
parent
63df7f65a7
commit
d60e01d497
4 changed files with 15 additions and 15 deletions
|
|
@ -961,4 +961,15 @@ public class CardView extends SimpleCardView {
|
|||
return cardTypes.contains(CardType.CREATURE);
|
||||
}
|
||||
|
||||
public String getColorText() {
|
||||
if (getColor().getColorCount() == 0) return "Colorless";
|
||||
else if (getColor().getColorCount() > 1) return "Gold";
|
||||
else if (getColor().isBlack()) return "Black";
|
||||
else if (getColor().isBlue()) return "Blue";
|
||||
else if (getColor().isWhite()) return "White";
|
||||
else if (getColor().isGreen()) return "Green";
|
||||
else if (getColor().isRed()) return "Red";
|
||||
return "";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue