mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 12:52:06 -08:00
[DTK] Added Dragonlord Atarka, updated TargetCreatureOrPlaneswalkerAmount to filter for opponent's controlled permanents.
This commit is contained in:
parent
3ee6df9a3e
commit
cb96db4151
2 changed files with 89 additions and 0 deletions
|
|
@ -35,9 +35,11 @@
|
|||
import mage.abilities.Ability;
|
||||
import mage.abilities.dynamicvalue.DynamicValue;
|
||||
import mage.abilities.dynamicvalue.common.StaticValue;
|
||||
import mage.constants.TargetController;
|
||||
import mage.filter.Filter;
|
||||
import mage.filter.common.FilterCreatureOrPlaneswalkerPermanent;
|
||||
import mage.filter.common.FilterCreaturePermanent;
|
||||
import mage.filter.predicate.permanent.ControllerPredicate;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.target.TargetAmount;
|
||||
|
|
@ -63,6 +65,7 @@
|
|||
super(amount);
|
||||
this.zone = Zone.ALL;
|
||||
this.filter = new FilterCreatureOrPlaneswalkerPermanent();
|
||||
this.filter.add(new ControllerPredicate(TargetController.OPPONENT));
|
||||
this.targetName = filter.getMessage();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue