mirror of
https://github.com/magefree/mage.git
synced 2025-12-28 22:42:03 -08:00
- changed nonland filter to static filter
This commit is contained in:
parent
e0bbe2da7e
commit
8b427de2d3
1 changed files with 2 additions and 1 deletions
|
|
@ -47,6 +47,7 @@ import mage.target.targetpointer.FixedTarget;
|
|||
import java.util.UUID;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.effects.common.UntapAllControllerEffect;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.filter.common.FilterNonlandPermanent;
|
||||
import mage.players.Player;
|
||||
|
||||
|
|
@ -141,7 +142,7 @@ class UntapAllNonlandsTargetEffect extends OneShotEffect {
|
|||
public boolean apply(Game game, Ability source) {
|
||||
Player player = game.getPlayer(this.getTargetPointer().getFirst(game, source));
|
||||
if (player != null) {
|
||||
for (Permanent nonland: game.getBattlefield().getAllActivePermanents(new FilterNonlandPermanent(), player.getId(), game)) {
|
||||
for (Permanent nonland: game.getBattlefield().getAllActivePermanents(StaticFilters.FILTER_PERMANENT_NON_LAND, player.getId(), game)) {
|
||||
nonland.untap(game);
|
||||
}
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue