Added writing a state value to know if evolve ability is resolving.

This commit is contained in:
LevelX2 2013-04-20 20:02:59 +02:00
parent 18639bddd9
commit 76ab1c1bb5

View file

@ -135,7 +135,9 @@ class EvolveEffect extends OneShotEffect<EvolveEffect> {
if (triggeringCreature != null) {
Permanent sourceCreature = game.getPermanent(source.getSourceId());
if (sourceCreature != null && EvolveAbility.isPowerOrThoughnessGreater(sourceCreature, triggeringCreature)) {
game.getState().setValue("EvolveAddCounterActive", Boolean.TRUE);
sourceCreature.addCounters(CounterType.P1P1.createInstance(), game);
game.getState().setValue("EvolveAddCounterActive", Boolean.FALSE);
return true;
}
}