* Fixed a problem of the card filtering of RevealLibraryPutIntoHand (fixes a problem of Brass Herald moving all cards to hand).

This commit is contained in:
LevelX2 2019-12-20 20:54:23 +01:00
parent 7a7a9c20ec
commit e80cfbeb2c

View file

@ -1,4 +1,3 @@
package mage.abilities.effects.common;
import java.util.Set;
@ -73,7 +72,7 @@ public class RevealLibraryPutIntoHandEffect extends OneShotEffect {
Set<Card> cardsList = cards.getCards(game);
Cards cardsToHand = new CardsImpl();
for (Card card : cardsList) {
if (filter.match(card, game)) {
if (filter.match(card, source.getSourceId(), controller.getId(), game)) {
cardsToHand.add(card);
cards.remove(card);
}