made many dynamicvalues into singleton enums

This commit is contained in:
Evan Kranzler 2019-01-12 21:29:02 -05:00
parent 1d4b0895b4
commit fd7b8f29ca
390 changed files with 507 additions and 509 deletions

View file

@ -10,8 +10,8 @@ import mage.game.Game;
/**
* @author LevelX2
*/
public class SacrificeCostCreaturesPower implements DynamicValue {
public enum SacrificeCostCreaturesPower implements DynamicValue {
instance;
@Override
public int calculate(Game game, Ability sourceAbility, Effect effect) {
for (Cost cost : sourceAbility.getCosts()) {
@ -26,7 +26,7 @@ public class SacrificeCostCreaturesPower implements DynamicValue {
@Override
public SacrificeCostCreaturesPower copy() {
return new SacrificeCostCreaturesPower();
return SacrificeCostCreaturesPower.instance;
}
@Override