mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 03:22:00 -08:00
Sacrifice effect fix
This commit is contained in:
parent
1208c7d359
commit
8dda7eec1b
1 changed files with 3 additions and 0 deletions
|
|
@ -27,6 +27,7 @@
|
|||
*/
|
||||
package mage.abilities.effects.common;
|
||||
|
||||
import mage.Constants;
|
||||
import mage.Constants.Outcome;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.dynamicvalue.DynamicValue;
|
||||
|
|
@ -78,6 +79,8 @@ public class SacrificeEffect extends OneShotEffect<SacrificeEffect>{
|
|||
return false;
|
||||
}
|
||||
|
||||
filter.setTargetController(Constants.TargetController.YOU);
|
||||
|
||||
int amount = count.calculate(game, source);
|
||||
int realCount = game.getBattlefield().countAll(filter, player.getId());
|
||||
amount = Math.min(amount, realCount);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue