mirror of
https://github.com/correl/mage.git
synced 2024-11-16 03:00:12 +00:00
no need to do contains followed by an add on a set
This commit is contained in:
parent
eff547e28f
commit
baec87739c
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