mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
C17 Added Portal Mage.
This commit is contained in:
parent
a50e44ad3f
commit
e909f5c801
12 changed files with 214 additions and 29 deletions
|
|
@ -680,7 +680,7 @@ public class ComputerPlayer extends PlayerImpl implements Player {
|
|||
if (target.getOriginalTarget() instanceof TargetDefender) {
|
||||
// TODO: Improve, now planeswalker is always chosen if it exits
|
||||
List<Permanent> targets;
|
||||
targets = game.getBattlefield().getActivePermanents(new FilterPlaneswalkerPermanent(), randomOpponentId, game);
|
||||
targets = game.getBattlefield().getActivePermanents(StaticFilters.FILTER_PERMANENT_PLANESWALKER, randomOpponentId, game);
|
||||
if (targets != null && !targets.isEmpty()) {
|
||||
for (Permanent planeswalker : targets) {
|
||||
if (target.canTarget(getId(), planeswalker.getId(), source, game)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue