Fixed Proliferate. Fixed Issue 275.

This commit is contained in:
magenoxx 2011-10-12 12:50:29 +04:00
parent 28d887dff2
commit 6f884817fe
2 changed files with 2 additions and 2 deletions

View file

@ -68,7 +68,7 @@ public class ProliferateEffect extends OneShotEffect<ProliferateEffect> {
Map<String, Serializable> options = new HashMap<String, Serializable>();
options.put("UI.right.btn.text", "Done");
while (target.canChoose(controller.getId(), game)) {
if (!controller.choose(Outcome.Benefit, target, source.getSourceId(), game, options)) {
if (controller.choose(Outcome.Benefit, target, source.getSourceId(), game, options)) {
break;
}
}

View file

@ -173,7 +173,7 @@ public class TargetPermanentOrPlayer extends TargetImpl<TargetPermanentOrPlayer>
}
}
for (Permanent permanent: game.getBattlefield().getActivePermanents(filterPermanent, sourceControllerId, game)) {
if (filter.match(permanent, null, sourceControllerId, game)) {
if (filter.match(permanent, null, sourceControllerId, game) && filter.match(permanent)) {
count++;
if (count >= this.minNumberOfTargets)
return true;