mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
- Little refactor CardsCycledOrDiscardedThisTurnWatcher
This commit is contained in:
parent
60951f645b
commit
79be2c4ce8
1 changed files with 3 additions and 1 deletions
|
@ -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…
Reference in a new issue