mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
Change one shot effect resolving function. Resolve continuous effects after each one shot effect resolved.
This commit is contained in:
parent
2bfc5373fe
commit
4529efa773
1 changed files with 3 additions and 0 deletions
|
@ -44,6 +44,7 @@ import mage.cards.Card;
|
|||
import mage.choices.Choice;
|
||||
import mage.choices.Choices;
|
||||
import mage.game.Game;
|
||||
import mage.game.GameState;
|
||||
import mage.game.permanent.PermanentCard;
|
||||
import mage.target.Target;
|
||||
import mage.target.Targets;
|
||||
|
@ -151,6 +152,8 @@ public abstract class AbilityImpl<T extends AbilityImpl<T>> implements Ability {
|
|||
if (effect instanceof OneShotEffect) {
|
||||
if (!(effect instanceof PostResolveEffect)) {
|
||||
result &= effect.apply(game, this);
|
||||
// 20130716
|
||||
game.applyEffects();
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in a new issue