forked from External/mage
added cardutil method for incrementing map values
This commit is contained in:
parent
90ae244fa5
commit
e3b2ac15ba
28 changed files with 57 additions and 30 deletions
|
|
@ -1452,4 +1452,8 @@ public final class CardUtil {
|
|||
effect.apply(game, source);
|
||||
return true;
|
||||
}
|
||||
|
||||
public static <T> int setOrIncrementValue(T u, Integer i) {
|
||||
return i == null ? 1 : Integer.sum(i, 1);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue