* Reverent Hunter - Fixed that it got always 1 counter to much from its enters the battlefield triggered ability.

This commit is contained in:
LevelX2 2013-09-20 00:48:50 +02:00
parent fea6b0633a
commit eafe3e719d
2 changed files with 11 additions and 3 deletions

View file

@ -95,7 +95,11 @@ public class AddCountersSourceEffect extends OneShotEffect<AddCountersSourceEffe
if (card != null) {
if (counter != null) {
Counter newCounter = counter.copy();
newCounter.add(amount.calculate(game, source));
int countersToAdd = amount.calculate(game, source);
if (countersToAdd > 0 && newCounter.getCount() == 1) {
countersToAdd--;
}
newCounter.add(countersToAdd);
card.addCounters(newCounter, game);
if (informPlayers) {
Player player = game.getPlayer(source.getControllerId());
@ -111,7 +115,11 @@ public class AddCountersSourceEffect extends OneShotEffect<AddCountersSourceEffe
if (permanent != null) {
if (counter != null) {
Counter newCounter = counter.copy();
newCounter.add(amount.calculate(game, source));
int countersToAdd = amount.calculate(game, source);
if (countersToAdd > 0 && newCounter.getCount() == 1) {
countersToAdd--;
}
newCounter.add(countersToAdd);
permanent.addCounters(newCounter, game);
if (informPlayers) {
Player player = game.getPlayer(source.getControllerId());