Added control change announcement

This commit is contained in:
Zzooouhh 2017-11-05 20:46:13 +01:00 committed by GitHub
parent d5635e404a
commit 0efc03bc1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,8 +63,7 @@ public class RiskyMove extends CardImpl {
this.addAbility(new BeginningOfUpkeepTriggeredAbility(Zone.BATTLEFIELD, new RiskyMoveGetControlEffect(), TargetController.ANY, false, true));
// When you gain control of Risky Move from another player, choose a creature you control and an opponent. Flip a coin. If you lose the flip, that opponent gains control of that creature.
Ability ability = new RiskyMoveTriggeredAbility();
this.addAbility(ability);
this.addAbility(new RiskyMoveTriggeredAbility());
}
public RiskyMove(final RiskyMove card) {
@ -194,6 +193,7 @@ class RiskyMoveFlipCoinEffect extends OneShotEffect {
ContinuousEffect effect = new RiskyMoveCreatureGainControlEffect(Duration.Custom, chosenOpponent.getId());
effect.setTargetPointer(new FixedTarget(permanent.getId()));
game.addEffect(effect, source);
game.informPlayers(chosenOpponent.getLogName() + " has gained control of " + permanent.getLogName());
return true;
}
}