mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 03:51:58 -08:00
fixed Labyrinth Raptor not forcing a sacrifice
This commit is contained in:
parent
e5dd3aa05d
commit
4f674e43e6
1 changed files with 3 additions and 3 deletions
|
|
@ -16,7 +16,7 @@ import mage.constants.*;
|
|||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.common.FilterCreaturePermanent;
|
||||
import mage.filter.predicate.mageobject.AbilityPredicate;
|
||||
import mage.filter.predicate.permanent.BlockedByIdPredicate;
|
||||
import mage.filter.predicate.permanent.BlockingAttackerIdPredicate;
|
||||
import mage.game.Game;
|
||||
import mage.game.permanent.Permanent;
|
||||
import mage.players.Player;
|
||||
|
|
@ -101,9 +101,9 @@ class LabyrinthRaptorEffect extends OneShotEffect {
|
|||
return false;
|
||||
}
|
||||
FilterPermanent filterPermanent = new FilterPermanent("creature blocking " + permanent.getIdName());
|
||||
filterPermanent.add(new BlockedByIdPredicate(permanent.getId()));
|
||||
filterPermanent.add(new BlockingAttackerIdPredicate(permanent.getId()));
|
||||
Effect effect = new SacrificeEffect(filterPermanent, 1, "");
|
||||
effect.setTargetPointer(new FixedTarget(player.getId(), game));
|
||||
return effect.apply(game, source);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue