Opal Palce - Fixed that the amount of counters added was calculated one less than the intended amount.

This commit is contained in:
LevelX2 2013-12-11 19:35:06 +01:00
parent 59c832123e
commit 7bcae07277

View file

@ -236,8 +236,8 @@ class OpalPalaceEntersBattlefieldEffect extends ReplacementEffectImpl<OpalPalace
Permanent permanent = game.getPermanent(event.getTargetId()); Permanent permanent = game.getPermanent(event.getTargetId());
if (permanent != null) { if (permanent != null) {
Integer castCount = (Integer)game.getState().getValue(permanent.getId() + "_castCount"); Integer castCount = (Integer)game.getState().getValue(permanent.getId() + "_castCount");
if (castCount != null && castCount.intValue() > 1) { if (castCount != null && castCount.intValue() > 0) {
permanent.addCounters(CounterType.P1P1.createInstance(castCount-1), game); permanent.addCounters(CounterType.P1P1.createInstance(castCount), game);
} }
} }
return false; return false;