* Battlefield layout - Permanents getting creatures and vice versa move now always immediately to the correct area / row on the battlefield (fixes #387).

This commit is contained in:
LevelX2 2014-03-14 08:38:59 +01:00
parent 9ca014b10e
commit 17253fa099
4 changed files with 48 additions and 27 deletions

View file

@ -77,7 +77,6 @@ public class CardPanel extends MagePermanent implements MouseListener, MouseMoti
// for two faced cards
public CardView temporary;
private List<MagePermanent> links = new ArrayList<>();
public double tappedAngle = 0;
@ -915,6 +914,9 @@ public class CardPanel extends MagePermanent implements MouseListener, MouseMoti
@Override
public PermanentView getOriginalPermanent() {
if (isPermanent) {
return (PermanentView) this.gameCard;
}
throw new IllegalStateException("Is not permanent.");
}