* Lightning Runner - Fixed a bug of the optional untap and add combat phase effect.

This commit is contained in:
LevelX2 2017-01-21 01:10:37 +01:00
parent 5fe25b0af7
commit b1a51ce7cf
2 changed files with 15 additions and 11 deletions

View file

@ -61,9 +61,9 @@ public class GetEnergyCountersControllerEffect extends OneShotEffect {
@Override
public boolean apply(Game game, Ability source) {
Player player = game.getPlayer(source.getControllerId());
if (player != null) {
return player.addCounters(CounterType.ENERGY.createInstance(value.calculate(game, source, this)), game);
Player controller = game.getPlayer(source.getControllerId());
if (controller != null) {
return controller.addCounters(CounterType.ENERGY.createInstance(value.calculate(game, source, this)), game);
}
return false;
}
@ -72,7 +72,7 @@ public class GetEnergyCountersControllerEffect extends OneShotEffect {
if (!staticText.isEmpty()) {
return;
}
StringBuilder sb = new StringBuilder();
sb.append("you get ");
int val = 1;