mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
- Fix issue #2088
This commit is contained in:
parent
240a1af183
commit
b4bda0da5e
1 changed files with 4 additions and 5 deletions
|
@ -37,6 +37,7 @@ import mage.abilities.common.SimpleStaticAbility;
|
||||||
import mage.abilities.effects.OneShotEffect;
|
import mage.abilities.effects.OneShotEffect;
|
||||||
import mage.abilities.effects.common.CastSourceTriggeredAbility;
|
import mage.abilities.effects.common.CastSourceTriggeredAbility;
|
||||||
import mage.abilities.effects.common.cost.CostModificationEffectImpl;
|
import mage.abilities.effects.common.cost.CostModificationEffectImpl;
|
||||||
|
import mage.abilities.effects.common.turn.ControlTargetPlayerNextTurnEffect;
|
||||||
import mage.abilities.keyword.FlyingAbility;
|
import mage.abilities.keyword.FlyingAbility;
|
||||||
import mage.abilities.keyword.ProtectionAbility;
|
import mage.abilities.keyword.ProtectionAbility;
|
||||||
import mage.abilities.keyword.TrampleAbility;
|
import mage.abilities.keyword.TrampleAbility;
|
||||||
|
@ -143,10 +144,10 @@ class EmrakulThePromisedEndCostReductionEffect extends CostModificationEffectImp
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class EmrakulThePromisedEndGainControlEffect extends OneShotEffect {
|
class EmrakulThePromisedEndGainControlEffect extends ControlTargetPlayerNextTurnEffect {
|
||||||
|
|
||||||
EmrakulThePromisedEndGainControlEffect() {
|
EmrakulThePromisedEndGainControlEffect() {
|
||||||
super(Outcome.GainControl);
|
super();
|
||||||
this.staticText = "you gain control of target opponent during that player's next turn. After that turn, that player takes an extra turn";
|
this.staticText = "you gain control of target opponent during that player's next turn. After that turn, that player takes an extra turn";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -165,9 +166,7 @@ class EmrakulThePromisedEndGainControlEffect extends OneShotEffect {
|
||||||
Player targetPlayer = game.getPlayer(this.getTargetPointer().getFirst(game, source));
|
Player targetPlayer = game.getPlayer(this.getTargetPointer().getFirst(game, source));
|
||||||
if (controller != null && targetPlayer != null) {
|
if (controller != null && targetPlayer != null) {
|
||||||
game.getState().getTurnMods().add(new TurnMod(targetPlayer.getId(), false));
|
game.getState().getTurnMods().add(new TurnMod(targetPlayer.getId(), false));
|
||||||
game.getState().getTurnMods().add(new TurnMod(targetPlayer.getId(), controller.getId()));
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
return false;
|
return super.apply(game, source);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue