forked from External/mage
made many dynamicvalues into singleton enums
This commit is contained in:
parent
1d4b0895b4
commit
fd7b8f29ca
390 changed files with 507 additions and 509 deletions
|
|
@ -8,7 +8,8 @@ import mage.game.Game;
|
|||
/**
|
||||
* @author JayDi85
|
||||
*/
|
||||
public class OpponentsCount implements DynamicValue {
|
||||
public enum OpponentsCount implements DynamicValue {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
public int calculate(Game game, Ability sourceAbility, Effect effect) {
|
||||
|
|
@ -17,7 +18,7 @@ public class OpponentsCount implements DynamicValue {
|
|||
|
||||
@Override
|
||||
public OpponentsCount copy() {
|
||||
return new OpponentsCount();
|
||||
return OpponentsCount.instance;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue