mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 20:41:58 -08:00
Merge remote-tracking branch 'remotes/upstream/master'
This commit is contained in:
commit
3e4809b224
7 changed files with 237 additions and 11 deletions
|
|
@ -58,7 +58,7 @@ public enum CardRepository {
|
|||
// raise this if db structure was changed
|
||||
private static final long CARD_DB_VERSION = 51;
|
||||
// raise this if new cards were added to the server
|
||||
private static final long CARD_CONTENT_VERSION = 84;
|
||||
private static final long CARD_CONTENT_VERSION = 85;
|
||||
private final TreeSet<String> landTypes = new TreeSet<>();
|
||||
private Dao<CardInfo, Object> cardDao;
|
||||
private Set<String> classNames;
|
||||
|
|
|
|||
|
|
@ -61,7 +61,9 @@ public class CardsCycledOrDiscardedThisTurnWatcher extends Watcher {
|
|||
|
||||
@Override
|
||||
public void watch(GameEvent event, Game game) {
|
||||
if (event.getType() == GameEvent.EventType.DISCARDED_CARD && event.getPlayerId() != null) {
|
||||
if (event.getType() == GameEvent.EventType.DISCARDED_CARD
|
||||
|| event.getType() == GameEvent.EventType.CYCLED_CARD
|
||||
&& event.getPlayerId() != null) {
|
||||
Card card = game.getCard(event.getTargetId());
|
||||
if (card != null) {
|
||||
Cards c = getCardsCycledOrDiscardedThisTurn(event.getPlayerId());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue