mirror of
https://github.com/correl/mage.git
synced 2025-01-13 19:11:33 +00:00
Added writing a state value to know if evolve ability is resolving.
This commit is contained in:
parent
18639bddd9
commit
76ab1c1bb5
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue