forked from External/mage
Make the handling of counters more consistent.
This dramatically reduces the code duplication around counters handling.
This commit is contained in:
parent
148f633672
commit
bec11804f5
11 changed files with 116 additions and 134 deletions
|
|
@ -826,7 +826,6 @@ public class Spell extends StackObjImpl implements Card {
|
|||
|
||||
@Override
|
||||
public Counters getCounters(Game game) {
|
||||
|
||||
return card.getCounters(game);
|
||||
}
|
||||
|
||||
|
|
@ -835,16 +834,6 @@ public class Spell extends StackObjImpl implements Card {
|
|||
return card.getCounters(state);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean addCounters(String name, int amount, Game game) {
|
||||
return card.addCounters(name, amount, game);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean addCounters(String name, int amount, Game game, ArrayList<UUID> appliedEffects) {
|
||||
return card.addCounters(name, amount, game, appliedEffects);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean addCounters(Counter counter, Game game) {
|
||||
return card.addCounters(counter, game);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue