mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 19:41:59 -08:00
- Fixed Stadium Vendors.
This commit is contained in:
parent
1bac7fc04c
commit
c61badc2c3
1 changed files with 12 additions and 12 deletions
|
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
package mage.cards.s;
|
package mage.cards.s;
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
|
|
@ -65,21 +64,22 @@ class StadiumVendorsEffect extends OneShotEffect {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean apply(Game game, Ability source) {
|
public boolean apply(Game game, Ability source) {
|
||||||
Player controller = game.getPlayer(source.getSourceId());
|
Player controller = game.getPlayer(source.getControllerId());
|
||||||
if (controller == null) {
|
if (controller == null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
TargetPlayer target = new TargetPlayer(1, 1, true);
|
TargetPlayer target = new TargetPlayer(1, 1, true);
|
||||||
if (!controller.choose(Outcome.Benefit, target, source.getSourceId(), game)) {
|
if (controller.choose(Outcome.Benefit, target, source.getSourceId(), game)) {
|
||||||
return false;
|
Player player = game.getPlayer(target.getFirstTarget());
|
||||||
|
ChoiceColor colorChoice = new ChoiceColor(true);
|
||||||
|
if (player == null
|
||||||
|
|| !player.choose(Outcome.Benefit, colorChoice, game)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
Effect effect = new AddManaToManaPoolTargetControllerEffect(colorChoice.getMana(2), "that player's");
|
||||||
|
effect.setTargetPointer(new FixedTarget(player.getId(), game));
|
||||||
|
return effect.apply(game, source);
|
||||||
}
|
}
|
||||||
Player player = game.getPlayer(target.getFirstTarget());
|
return false;
|
||||||
ChoiceColor colorChoice = new ChoiceColor(true);
|
|
||||||
if (player == null || !player.choose(Outcome.Benefit, colorChoice, game)) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
Effect effect = new AddManaToManaPoolTargetControllerEffect(colorChoice.getMana(2), "that player's");
|
|
||||||
effect.setTargetPointer(new FixedTarget(player.getId(), game));
|
|
||||||
return effect.apply(game, source);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue