Change one shot effect resolving function. Resolve continuous effects after each one shot effect resolved.

This commit is contained in:
Li REN 2013-07-17 04:40:09 -04:00
parent 2bfc5373fe
commit 4529efa773

View file

@ -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 {