mirror of
https://github.com/correl/mage.git
synced 2025-01-12 11:08:01 +00:00
Jorael, Empress of Beasts: fix ability
needs to be a Predicate<Permanent>, not Predicate<Player>
This commit is contained in:
parent
616d1e556a
commit
ce3a70d3cf
1 changed files with 2 additions and 2 deletions
|
@ -45,7 +45,7 @@ import mage.constants.Zone;
|
|||
import mage.filter.FilterCard;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.common.FilterLandPermanent;
|
||||
import mage.filter.predicate.other.PlayerIdPredicate;
|
||||
import mage.filter.predicate.permanent.ControllerIdPredicate;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.token.Token;
|
||||
import mage.players.Player;
|
||||
|
@ -106,7 +106,7 @@ class JolraelEmpressOfBeastsEffect extends OneShotEffect {
|
|||
Player targetPlayer = game.getPlayer(getTargetPointer().getFirst(game, source));
|
||||
if (targetPlayer != null) {
|
||||
FilterPermanent filter = new FilterLandPermanent();
|
||||
filter.add(new PlayerIdPredicate(targetPlayer.getId()));
|
||||
filter.add(new ControllerIdPredicate(targetPlayer.getId()));
|
||||
game.addEffect(new BecomesCreatureAllEffect(new JolraelLandsToken(), "lands", filter, Duration.EndOfTurn), source);
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue