mirror of
https://github.com/magefree/mage.git
synced 2025-12-21 19:11:59 -08:00
added Summoning Sickness property
This commit is contained in:
parent
e36d4e57e1
commit
ecd0281d81
3 changed files with 12 additions and 1 deletions
|
|
@ -46,6 +46,7 @@ public class PermanentView extends CardView {
|
|||
private boolean flipped;
|
||||
private boolean phasedIn;
|
||||
private boolean faceUp;
|
||||
private boolean summoningSickness;
|
||||
private int damage;
|
||||
private List<UUID> attachments;
|
||||
private List<CounterView> counters;
|
||||
|
|
@ -57,6 +58,7 @@ public class PermanentView extends CardView {
|
|||
this.flipped = permanent.isFlipped();
|
||||
this.phasedIn = permanent.isPhasedIn();
|
||||
this.faceUp = permanent.isFaceUp();
|
||||
this.summoningSickness = permanent.hasSummoningSickness();
|
||||
this.damage = permanent.getDamage();
|
||||
if (permanent.getAttachments().size() > 0) {
|
||||
attachments = new ArrayList<UUID>();
|
||||
|
|
@ -96,6 +98,10 @@ public class PermanentView extends CardView {
|
|||
return faceUp;
|
||||
}
|
||||
|
||||
public boolean hasSummoningSickness(){
|
||||
return summoningSickness;
|
||||
}
|
||||
|
||||
public List<UUID> getAttachments() {
|
||||
return attachments;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue