mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 13:02:06 -08:00
* Fixed a bug that adding counters with Skyship Plunder or Maulfist Revolution did not trigger counter added events.
This commit is contained in:
parent
350436dee2
commit
17fbee2400
6 changed files with 58 additions and 81 deletions
|
|
@ -73,13 +73,6 @@ public class Counter implements Serializable {
|
|||
this.count = counter.count;
|
||||
}
|
||||
|
||||
/**
|
||||
* Increases the {@code count} by 1
|
||||
*/
|
||||
public void increase() {
|
||||
count++;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds the passed in {@code amount} to the {@code count}
|
||||
*
|
||||
|
|
|
|||
|
|
@ -24,8 +24,7 @@
|
|||
* The views and conclusions contained in the software and documentation are those of the
|
||||
* authors and should not be interpreted as representing official policies, either expressed
|
||||
* or implied, of BetaSteward_at_googlemail.com.
|
||||
*/
|
||||
|
||||
*/
|
||||
package mage.counters;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
|
@ -52,11 +51,6 @@ public class Counters extends HashMap<String, Counter> implements Serializable {
|
|||
return new Counters(this);
|
||||
}
|
||||
|
||||
public void addCounter(String name) {
|
||||
putIfAbsent(name, new Counter(name));
|
||||
this.get(name).increase();
|
||||
}
|
||||
|
||||
public void addCounter(String name, int amount) {
|
||||
putIfAbsent(name, new Counter(name));
|
||||
this.get(name).add(amount);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue