forked from External/mage
Fixed a bug that the copy of a Token could no more be copied because the baseValues for P/T were 0 for this copy. E.g. populate on an already populated token failed because of this bug.
This commit is contained in:
parent
ebd06f03c4
commit
bf59d850a8
2 changed files with 8 additions and 3 deletions
|
|
@ -72,6 +72,11 @@ public class MageInt implements Serializable, Copyable<MageInt> {
|
|||
return baseValue;
|
||||
}
|
||||
|
||||
public void initValue(int value) {
|
||||
this.baseValue = value;
|
||||
this.cardValue = Integer.toString(value);
|
||||
}
|
||||
|
||||
public void setValue(int value) {
|
||||
this.baseValue = value;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue