mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
Opal Palce - Fixed that the amount of counters added was calculated one less than the intended amount.
This commit is contained in:
parent
59c832123e
commit
7bcae07277
1 changed files with 2 additions and 2 deletions
|
@ -236,8 +236,8 @@ class OpalPalaceEntersBattlefieldEffect extends ReplacementEffectImpl<OpalPalace
|
|||
Permanent permanent = game.getPermanent(event.getTargetId());
|
||||
if (permanent != null) {
|
||||
Integer castCount = (Integer)game.getState().getValue(permanent.getId() + "_castCount");
|
||||
if (castCount != null && castCount.intValue() > 1) {
|
||||
permanent.addCounters(CounterType.P1P1.createInstance(castCount-1), game);
|
||||
if (castCount != null && castCount.intValue() > 0) {
|
||||
permanent.addCounters(CounterType.P1P1.createInstance(castCount), game);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue