mirror of
https://github.com/magefree/mage.git
synced 2026-01-24 04:09:54 -08:00
[AVR] Second Guest + tests. Refactored filters.
This commit is contained in:
parent
3fac42fc3c
commit
32e29392d2
184 changed files with 823 additions and 562 deletions
|
|
@ -98,7 +98,7 @@ class DescendantsPathEffect extends OneShotEffect<DescendantsPathEffect> {
|
|||
FilterControlledCreaturePermanent filter = new FilterControlledCreaturePermanent();
|
||||
filter.getSubtype().addAll(card.getSubtype());
|
||||
filter.setScopeSubtype(Filter.ComparisonScope.Any);
|
||||
int count = game.getBattlefield().getAllActivePermanents(filter, player.getId()).size();
|
||||
int count = game.getBattlefield().getAllActivePermanents(filter, player.getId(), game).size();
|
||||
if (count > 0) {
|
||||
game.informPlayers("DescendantsPath: Found a creature that shares a creature type with the revealed card.");
|
||||
if (player.chooseUse(Constants.Outcome.Benefit, "Cast the card?", game)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue