forked from External/mage
* Changed return class of copy method.
This commit is contained in:
parent
2aa2ad7252
commit
67bd4956d9
34 changed files with 148 additions and 120 deletions
|
|
@ -1,18 +1,19 @@
|
|||
package mage.abilities.dynamicvalue.common;
|
||||
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.dynamicvalue.DynamicValue;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.game.Game;
|
||||
|
||||
public class StaticValue implements DynamicValue {
|
||||
|
||||
private int value = 0;
|
||||
private String message;
|
||||
|
||||
|
||||
public StaticValue(int value) {
|
||||
this(value, "");
|
||||
}
|
||||
|
||||
public StaticValue(int value, String message) {
|
||||
this.value = value;
|
||||
this.message = message;
|
||||
|
|
@ -29,7 +30,7 @@ public class StaticValue implements DynamicValue {
|
|||
}
|
||||
|
||||
@Override
|
||||
public DynamicValue copy() {
|
||||
public StaticValue copy() {
|
||||
return new StaticValue(this);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue