forked from External/mage
[AVR] Second Guest + tests. Refactored filters.
This commit is contained in:
parent
3fac42fc3c
commit
32e29392d2
184 changed files with 823 additions and 562 deletions
|
|
@ -82,7 +82,7 @@ public class SacrificeEffect extends OneShotEffect<SacrificeEffect>{
|
|||
filter.setTargetController(Constants.TargetController.YOU);
|
||||
|
||||
int amount = count.calculate(game, source);
|
||||
int realCount = game.getBattlefield().countAll(filter, player.getId());
|
||||
int realCount = game.getBattlefield().countAll(filter, player.getId(), game);
|
||||
amount = Math.min(amount, realCount);
|
||||
|
||||
Target target = new TargetControlledPermanent(amount, amount, filter, false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue