forked from External/mage
* Deals damage divided as you choose - fixed that some cards can't choose planeswalkers (example: Arc Lightning, see #7276);
Refactor: simplified FilterCreaturePlayerOrPlaneswalker to use single permanent filter;
This commit is contained in:
parent
347a3b1e1a
commit
255c292104
18 changed files with 162 additions and 222 deletions
|
|
@ -2,23 +2,17 @@ package mage.target.common;
|
|||
|
||||
import mage.abilities.dynamicvalue.DynamicValue;
|
||||
import mage.abilities.dynamicvalue.common.StaticValue;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.common.FilterCreaturePlayerOrPlaneswalker;
|
||||
import mage.filter.common.FilterPermanentOrPlayer;
|
||||
|
||||
/**
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public class TargetAnyTargetAmount extends TargetPermanentOrPlayerAmount {
|
||||
|
||||
private static final FilterPermanentOrPlayer defaultFilter
|
||||
private static final FilterCreaturePlayerOrPlaneswalker defaultFilter
|
||||
= new FilterCreaturePlayerOrPlaneswalker("targets");
|
||||
|
||||
static {
|
||||
defaultFilter.getPermanentFilter().add(CardType.CREATURE.getPredicate());
|
||||
}
|
||||
|
||||
public TargetAnyTargetAmount(int amount) {
|
||||
this(amount, 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue