* Reworked some parts of transform handling. Fixes #2396.

This commit is contained in:
LevelX2 2016-09-28 17:02:37 +02:00
parent e57da7598e
commit 86648c7190
157 changed files with 246 additions and 204 deletions

View file

@ -116,7 +116,7 @@ public class GameView implements Serializable {
} else {
stack.put(stackObject.getId(), new StackAbilityView(game, (StackAbility) stackObject, "", new CardView(card)));
}
if (card.canTransform()) {
if (card.isTransformable()) {
updateLatestCardView(game, card, stackObject.getId());
}
checkPaid(stackObject.getId(), (StackAbility) stackObject);
@ -230,7 +230,7 @@ public class GameView implements Serializable {
}
private void updateLatestCardView(Game game, Card card, UUID stackId) {
if (!card.canTransform()) {
if (!card.isTransformable()) {
return;
}
Permanent permanent = game.getPermanent(card.getId());