mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 13:02:06 -08:00
Fixed a problem that selecting cards in hand or libraray could unintended trigger "becomes the target of a spell or ability" abilities.
This commit is contained in:
parent
3cd26fa834
commit
c6d54c929f
2 changed files with 3 additions and 2 deletions
|
|
@ -24,8 +24,7 @@
|
|||
* The views and conclusions contained in the software and documentation are those of the
|
||||
* authors and should not be interpreted as representing official policies, either expressed
|
||||
* or implied, of BetaSteward_at_googlemail.com.
|
||||
*/
|
||||
|
||||
*/
|
||||
package mage.target.common;
|
||||
|
||||
import java.util.HashSet;
|
||||
|
|
@ -60,6 +59,7 @@ public class TargetCardInHand extends TargetCard {
|
|||
|
||||
public TargetCardInHand(int minNumTargets, int maxNumTargets, FilterCard filter) {
|
||||
super(minNumTargets, maxNumTargets, Zone.HAND, filter);
|
||||
setNotTarget(true);
|
||||
}
|
||||
|
||||
public TargetCardInHand(final TargetCardInHand target) {
|
||||
|
|
|
|||
|
|
@ -69,6 +69,7 @@ public class TargetCardInLibrary extends TargetCard {
|
|||
// with a certain card type or color, that player isn’t required to find some or all of those cards
|
||||
// even if they’re present in that zone.
|
||||
this.setRequired(!filter.hasPredicates());
|
||||
this.setNotTarget(true);
|
||||
this.librarySearchLimit = Integer.MAX_VALUE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue