SacrificeEffect target required fix

This commit is contained in:
magenoxx 2012-05-27 15:36:41 +04:00
parent c4cbc2a34e
commit cb63b900cd
2 changed files with 24 additions and 0 deletions

View file

@ -86,6 +86,7 @@ public class SacrificeEffect extends OneShotEffect<SacrificeEffect>{
amount = Math.min(amount, realCount);
Target target = new TargetControlledPermanent(amount, amount, filter, false);
target.setRequired(true);
//A spell or ability could have removed the only legal target this player
//had, if thats the case this ability should fizzle.