forked from External/mage
* 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:
parent
9ca014b10e
commit
17253fa099
4 changed files with 48 additions and 27 deletions
|
|
@ -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.");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue