r484 broke arrows for Abilities in the stack. Fixed.

This commit is contained in:
magenoxx 2010-12-09 11:06:51 +00:00
parent 168c8dc294
commit 55eba04697
2 changed files with 12 additions and 1 deletions

View file

@ -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;
}