* Archive Trap - Fixed that wrongly also searches of other player'S library were taken into account.
* authors and should not be interpreted as representing official policies, either expressed
* or implied, of BetaSteward_at_googlemail.com.
*/
-
package mage.cards.a;
import java.util.HashSet;
@@ -95,7 +94,8 @@ class ArchiveTrapWatcher extends Watcher {
@Override
public void watch(GameEvent event, Game game) {
- if (event.getType() == EventType.LIBRARY_SEARCHED) {
+ if (event.getType() == EventType.LIBRARY_SEARCHED
+ && event.getTargetId().equals(event.getPlayerId())) { // player searched own library
playerIds.add(event.getPlayerId());
}
}
@@ -106,7 +106,6 @@ class ArchiveTrapWatcher extends Watcher {
playerIds.clear();
}
-
public Set<UUID> getPlayersSearchedLibrary() {
return playerIds;
}
