mirror of
https://github.com/magefree/mage.git
synced 2026-01-17 17:06:45 -08:00
Added possibility to set a flag for effects that causes to call game.applyEffects() after the effect is resolved.
This commit is contained in:
parent
2bfc5373fe
commit
b93ff11aeb
3 changed files with 22 additions and 0 deletions
|
|
@ -156,6 +156,10 @@ public abstract class AbilityImpl<T extends AbilityImpl<T>> implements Ability {
|
|||
else {
|
||||
game.addEffect((ContinuousEffect) effect, this);
|
||||
}
|
||||
// some effects must be applied before next effect is resolved, because effect is dependend.
|
||||
if (effect.applyEffectsAfter()) {
|
||||
game.applyEffects();
|
||||
}
|
||||
}
|
||||
}
|
||||
return result;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue