mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00: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;
|
||||
|
||||
import java.util.UUID;
|
||||
|
@ -65,21 +64,22 @@ class StadiumVendorsEffect extends OneShotEffect {
|
|||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Player controller = game.getPlayer(source.getSourceId());
|
||||
Player controller = game.getPlayer(source.getControllerId());
|
||||
if (controller == null) {
|
||||
return false;
|
||||
}
|
||||
TargetPlayer target = new TargetPlayer(1, 1, true);
|
||||
if (!controller.choose(Outcome.Benefit, target, source.getSourceId(), game)) {
|
||||
return false;
|
||||
if (controller.choose(Outcome.Benefit, target, source.getSourceId(), game)) {
|
||||
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());
|
||||
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);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue