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
|
|
@ -9,20 +9,21 @@ import mage.watchers.common.ZuberasDiedWatcher;
|
|||
/**
|
||||
* Created by Eric on 9/24/2016.
|
||||
*/
|
||||
public class ZuberasDiedDynamicValue implements DynamicValue {
|
||||
public enum ZuberasDiedDynamicValue implements DynamicValue {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
public int calculate(Game game, Ability sourceAbility, Effect effect) {
|
||||
ZuberasDiedWatcher watcher = game.getState().getWatcher(ZuberasDiedWatcher.class);
|
||||
if(watcher == null){
|
||||
if (watcher == null) {
|
||||
return 0;
|
||||
}
|
||||
return watcher.getZuberasDiedThisTurn();
|
||||
return watcher.getZuberasDiedThisTurn();
|
||||
}
|
||||
|
||||
@Override
|
||||
public ZuberasDiedDynamicValue copy() {
|
||||
return new ZuberasDiedDynamicValue();
|
||||
return ZuberasDiedDynamicValue.instance;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue