mirror of
https://github.com/correl/mage.git
synced 2025-01-11 19:13:02 +00:00
Fixed vehicle PT draws in image render mode;
This commit is contained in:
parent
5c69c66122
commit
9b53c75a6a
2 changed files with 4 additions and 1 deletions
|
@ -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();
|
||||
|
|
|
@ -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()));
|
||||
|
|
Loading…
Reference in a new issue