From 2ae25b3c252c3c9c3bde7f9900c86fa3f02616b4 Mon Sep 17 00:00:00 2001 From: North Date: Mon, 3 Oct 2011 22:30:35 +0300 Subject: [PATCH] small refactoring --- Mage/src/mage/abilities/effects/common/SacrificeEffect.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Mage/src/mage/abilities/effects/common/SacrificeEffect.java b/Mage/src/mage/abilities/effects/common/SacrificeEffect.java index 57a098a1764..b73401e7444 100644 --- a/Mage/src/mage/abilities/effects/common/SacrificeEffect.java +++ b/Mage/src/mage/abilities/effects/common/SacrificeEffect.java @@ -74,7 +74,8 @@ public class SacrificeEffect extends OneShotEffect{ public boolean apply(Game game, Ability source) { Player player = game.getPlayer(targetPointer.getFirst(source)); filter.setTargetController(TargetController.YOU); - Target target = new TargetControlledPermanent(count.calculate(game, source), count.calculate(game, source), filter, false); + int amount = count.calculate(game, source); + Target target = new TargetControlledPermanent(amount, amount, filter, false); //A spell or ability could have removed the only legal target this player //had, if thats the case this ability should fizzle.