forked from External/mage
r484 broke arrows for Abilities in the stack. Fixed.
This commit is contained in:
parent
168c8dc294
commit
55eba04697
2 changed files with 12 additions and 1 deletions
|
|
@ -53,6 +53,7 @@ import mage.target.Targets;
|
|||
public class CardView implements Serializable {
|
||||
|
||||
protected UUID id;
|
||||
protected UUID parentId;
|
||||
protected String name;
|
||||
protected List<String> rules;
|
||||
protected String power;
|
||||
|
|
@ -242,9 +243,19 @@ public class CardView implements Serializable {
|
|||
}
|
||||
|
||||
public void overrideId(UUID id) {
|
||||
if (parentId == null) {
|
||||
parentId = this.id;
|
||||
}
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public UUID getParentId() {
|
||||
if (parentId != null) {
|
||||
return parentId;
|
||||
}
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setAbility(CardView ability) {
|
||||
this.ability = ability;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue