Fixed vehicle PT draws in image render mode;

This commit is contained in:
Oleg Agafonov 2019-05-11 17:38:01 +04:00
parent 5c69c66122
commit 9b53c75a6a
2 changed files with 4 additions and 1 deletions

View file

@ -118,6 +118,8 @@ public class TestCardRenderDialog extends MageDialog {
view.put(card.getId(), card);
card = createCard(game, player.getId(), "RNA", "221", 0, 0, 0); // Bedeck // Bedazzle
view.put(card.getId(), card);
card = createCard(game, player.getId(), "XLN", "234", 0, 0, 0); // Conqueror's Galleon
view.put(card.getId(), card);
cardsPanel.setCustomCardSize(new Dimension(getCardWidth(), getCardHeight()));
cardsPanel.changeGUISize();

View file

@ -10,6 +10,7 @@ import mage.client.util.SoftValuesLoadingCache;
import mage.components.ImagePanel;
import mage.components.ImagePanelStyle;
import mage.constants.AbilityType;
import mage.constants.SubType;
import mage.view.CardView;
import mage.view.CounterView;
import mage.view.PermanentView;
@ -648,7 +649,7 @@ public class CardPanelComponentImpl extends CardPanel {
}
private void updatePTTexts(CardView card) {
if (card.isCreature()) {
if (card.isCreature() || card.getSubTypes().contains(SubType.VEHICLE)) {
ptText1.setText(getGameCard().getPower());
ptText2.setText("/");
ptText3.setText(CardRendererUtils.getCardLifeWithDamage(getGameCard()));