mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
Reverted this commit that broke a watcher. Fixes #3246
This commit is contained in:
parent
86bc78e4b8
commit
ba2456188f
1 changed files with 2 additions and 1 deletions
|
@ -64,7 +64,8 @@ public class CardsCycledOrDiscardedThisTurnWatcher extends Watcher {
|
|||
if (event.getType() == GameEvent.EventType.UNTAP_STEP_PRE) {
|
||||
reset();
|
||||
}
|
||||
if (event.getType() == GameEvent.EventType.DISCARDED_CARD) {
|
||||
if (event.getType() == GameEvent.EventType.CYCLED_CARD
|
||||
|| event.getType() == GameEvent.EventType.DISCARDED_CARD) {
|
||||
UUID playerId = event.getPlayerId();
|
||||
if (playerId != null
|
||||
&& game.getCard(event.getTargetId()) != null) {
|
||||
|
|
Loading…
Reference in a new issue