mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
* Smokestack - Fixed that the sacrifice was wrongly handled targeted.
This commit is contained in:
parent
500926f093
commit
ae8e6122a5
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ class SmokestackEffect extends OneShotEffect {
|
||||||
int count = sourcePermanent.getCounters(game).getCount("Soot");
|
int count = sourcePermanent.getCounters(game).getCount("Soot");
|
||||||
if (count > 0) {
|
if (count > 0) {
|
||||||
int amount = Math.min(count, game.getBattlefield().countAll(new FilterControlledPermanent(), activePlayer.getId(), game));
|
int amount = Math.min(count, game.getBattlefield().countAll(new FilterControlledPermanent(), activePlayer.getId(), game));
|
||||||
Target target = new TargetControlledPermanent(amount, amount, new FilterControlledPermanent(), false);
|
Target target = new TargetControlledPermanent(amount, amount, new FilterControlledPermanent(), true);
|
||||||
//A spell or ability could have removed the only legal target this player
|
//A spell or ability could have removed the only legal target this player
|
||||||
//had, if thats the case this ability should fizzle.
|
//had, if thats the case this ability should fizzle.
|
||||||
if (target.canChoose(activePlayer.getId(), game)) {
|
if (target.canChoose(activePlayer.getId(), game)) {
|
||||||
|
|
Loading…
Reference in a new issue