mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +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());
|
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;
|
||||||
|
|
Loading…
Reference in a new issue