mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 04:42:07 -08:00
* Lightning Runner - Fixed a bug of the optional untap and add combat phase effect.
This commit is contained in:
parent
5fe25b0af7
commit
b1a51ce7cf
2 changed files with 15 additions and 11 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue