mirror of
https://github.com/correl/mage.git
synced 2025-01-13 11:01:58 +00:00
small refactoring
This commit is contained in:
parent
511c6a200b
commit
2ae25b3c25
1 changed files with 2 additions and 1 deletions
|
@ -74,7 +74,8 @@ public class SacrificeEffect extends OneShotEffect<SacrificeEffect>{
|
|||
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.
|
||||
|
|
Loading…
Reference in a new issue