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
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue