mirror of
https://github.com/correl/mage.git
synced 2024-12-24 11:50:45 +00:00
Added Jolrael, Empress of Beasts (added land filter).
This commit is contained in:
parent
8fd006caa5
commit
1e2c4a894a
1 changed files with 2 additions and 1 deletions
|
@ -44,6 +44,7 @@ import mage.constants.Rarity;
|
|||
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.game.Game;
|
||||
import mage.game.permanent.token.Token;
|
||||
|
@ -104,7 +105,7 @@ class JolraelEmpressOfBeastsEffect extends OneShotEffect {
|
|||
public boolean apply(Game game, Ability source) {
|
||||
Player targetPlayer = game.getPlayer(getTargetPointer().getFirst(game, source));
|
||||
if (targetPlayer != null) {
|
||||
FilterPermanent filter = new FilterPermanent();
|
||||
FilterPermanent filter = new FilterLandPermanent();
|
||||
filter.add(new PlayerIdPredicate(targetPlayer.getId()));
|
||||
game.addEffect(new BecomesCreatureAllEffect(new JolraelLandsToken(), "lands", filter, Duration.EndOfTurn), source);
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue