mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
no need to do contains followed by an add on a set
This commit is contained in:
parent
716c07f057
commit
aad6a0d1f3
1 changed files with 2 additions and 2 deletions
|
@ -43,6 +43,7 @@ import mage.game.permanent.Permanent;
|
|||
import mage.players.Player;
|
||||
import mage.watchers.Watcher;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @author maxlebedev
|
||||
|
@ -99,9 +100,8 @@ class LeovoldEmissaryOfTrestWatcher extends Watcher {
|
|||
@Override
|
||||
public void watch(GameEvent event, Game game) {
|
||||
if (event.getType() == GameEvent.EventType.DREW_CARD ) {
|
||||
if (!playersThatDrewCard.contains(event.getPlayerId())) {
|
||||
playersThatDrewCard.add(event.getPlayerId());
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue