no need to do contains followed by an add on a set

This commit is contained in:
ingmargoudt 2016-09-13 17:25:58 +02:00
parent 716c07f057
commit aad6a0d1f3

View file

@ -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());
}
}
}