mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
Couple small changes
This commit is contained in:
parent
237db497b6
commit
79648eb7ea
1 changed files with 1 additions and 2 deletions
|
@ -64,8 +64,7 @@ public class CardsCycledOrDiscardedThisTurnWatcher extends Watcher {
|
||||||
if (event.getType() == GameEvent.EventType.UNTAP_STEP_PRE) {
|
if (event.getType() == GameEvent.EventType.UNTAP_STEP_PRE) {
|
||||||
reset();
|
reset();
|
||||||
}
|
}
|
||||||
if (event.getType() == GameEvent.EventType.CYCLED_CARD
|
if (event.getType() == GameEvent.EventType.DISCARDED_CARD) {
|
||||||
|| event.getType() == GameEvent.EventType.DISCARDED_CARD) {
|
|
||||||
UUID playerId = event.getPlayerId();
|
UUID playerId = event.getPlayerId();
|
||||||
if (playerId != null
|
if (playerId != null
|
||||||
&& game.getCard(event.getTargetId()) != null) {
|
&& game.getCard(event.getTargetId()) != null) {
|
||||||
|
|
Loading…
Reference in a new issue