mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 03:51:58 -08:00
Merge pull request #5740 from kahnyoudiggit/patch-1
Fix log text with ProliferateEffect
This commit is contained in:
commit
39813fbf9b
1 changed files with 6 additions and 10 deletions
|
|
@ -43,7 +43,6 @@ public class ProliferateEffect extends OneShotEffect {
|
|||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Player controller = game.getPlayer(source.getControllerId());
|
||||
int numberOfCounters = 0;
|
||||
Counter newCounter = null;
|
||||
if (controller == null) {
|
||||
return false;
|
||||
|
|
@ -60,14 +59,12 @@ public class ProliferateEffect extends OneShotEffect {
|
|||
for (Counter counter : permanent.getCounters(game).values()) {
|
||||
newCounter = new Counter(counter.getName());
|
||||
permanent.addCounters(newCounter, source, game);
|
||||
numberOfCounters = numberOfCounters + 1;
|
||||
}
|
||||
if (newCounter != null) {
|
||||
game.informPlayers(permanent.getName()
|
||||
+ " had "
|
||||
+ numberOfCounters
|
||||
+ " " + newCounter.getName()
|
||||
+ " counter(s) added to it.");
|
||||
+ " had 1 "
|
||||
+ newCounter.getName()
|
||||
+ " counter added to it.");
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
@ -77,13 +74,12 @@ public class ProliferateEffect extends OneShotEffect {
|
|||
for (Counter counter : player.getCounters().values()) {
|
||||
newCounter = new Counter(counter.getName());
|
||||
player.addCounters(newCounter, game);
|
||||
numberOfCounters = numberOfCounters + 1;
|
||||
}
|
||||
if (newCounter != null) {
|
||||
game.informPlayers(player.getName() + " had "
|
||||
+ numberOfCounters + " "
|
||||
game.informPlayers(player.getName()
|
||||
+ " had 1 "
|
||||
+ newCounter.getName()
|
||||
+ " counter(s) added to him or her.");
|
||||
+ " counter added to them.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue