mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
fixed cards that don't win or lose a flip
This commit is contained in:
parent
535fe221e3
commit
2e1c4a054e
7 changed files with 9 additions and 9 deletions
|
@ -99,7 +99,7 @@ class GoblinAssassinTriggeredEffect extends OneShotEffect {
|
|||
if (controller != null) {
|
||||
for (UUID playerId : game.getState().getPlayersInRange(controller.getId(), game)) {
|
||||
Player player = game.getPlayer(playerId);
|
||||
if (player != null && !player.flipCoin(source, game, true)) {
|
||||
if (player != null && !player.flipCoin(source, game, false)) {
|
||||
TargetControlledCreaturePermanent target = new TargetControlledCreaturePermanent();
|
||||
target.setNotTarget(true);
|
||||
if (target.canChoose(player.getId(), game)) {
|
||||
|
|
|
@ -62,8 +62,8 @@ class ManaClashEffect extends OneShotEffect {
|
|||
if (!targetOpponent.canRespond() || !controller.canRespond()) {
|
||||
return false;
|
||||
}
|
||||
boolean controllerFlip = controller.flipCoin(source, game, true);
|
||||
boolean opponentFlip = targetOpponent.flipCoin(source, game, true);
|
||||
boolean controllerFlip = controller.flipCoin(source, game, false);
|
||||
boolean opponentFlip = targetOpponent.flipCoin(source, game, false);
|
||||
if (controllerFlip && opponentFlip) {
|
||||
bothHeads = true;
|
||||
}
|
||||
|
|
|
@ -64,7 +64,7 @@ class MoltenSentryEffect extends OneShotEffect {
|
|||
Player controller = game.getPlayer(source.getControllerId());
|
||||
Permanent permanent = game.getPermanentEntering(source.getSourceId());
|
||||
if (controller != null && permanent != null) {
|
||||
if (controller.flipCoin(source, game, true)) {
|
||||
if (controller.flipCoin(source, game, false)) {
|
||||
game.informPlayers("Heads: " + permanent.getLogName() + " enters the battlefield as a 5/2 creature with haste");
|
||||
permanent.getPower().modifyBaseValue(5);
|
||||
permanent.getToughness().modifyBaseValue(2);
|
||||
|
|
|
@ -65,7 +65,7 @@ class OddsEffect extends OneShotEffect {
|
|||
public boolean apply(Game game, Ability source) {
|
||||
Player controller = game.getPlayer(source.getControllerId());
|
||||
if (controller != null) {
|
||||
if (controller.flipCoin(source, game, true)) {
|
||||
if (controller.flipCoin(source, game, false)) {
|
||||
game.informPlayers("Odds: Spell countered");
|
||||
return game.getStack().counter(getTargetPointer().getFirst(game, source), source.getSourceId(), game);
|
||||
|
||||
|
|
|
@ -80,7 +80,7 @@ class RakdosTheShowstopperEffect extends OneShotEffect {
|
|||
&& !permanent.hasSubtype(SubType.DEMON, game)
|
||||
&& !permanent.hasSubtype(SubType.DEVIL, game)
|
||||
&& !permanent.hasSubtype(SubType.IMP, game)
|
||||
&& !player.flipCoin(source, game, true)) {
|
||||
&& !player.flipCoin(source, game, false)) {
|
||||
permanent.destroy(source.getSourceId(), game, false);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -99,7 +99,7 @@ class RalZarekExtraTurnsEffect extends OneShotEffect {
|
|||
Player controller = game.getPlayer(source.getControllerId());
|
||||
if (controller != null) {
|
||||
for (int i = 0; i < 5; i++) {
|
||||
if (controller.flipCoin(source, game, true)) {
|
||||
if (controller.flipCoin(source, game, false)) {
|
||||
game.getState().getTurnMods().add(new TurnMod(source.getControllerId(), false));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -69,8 +69,8 @@ class TwoHeadedGiantEffect extends OneShotEffect {
|
|||
if (player == null) {
|
||||
return false;
|
||||
}
|
||||
boolean head1 = player.flipCoin(source, game, true);
|
||||
boolean head2 = player.flipCoin(source, game, true);
|
||||
boolean head1 = player.flipCoin(source, game, false);
|
||||
boolean head2 = player.flipCoin(source, game, false);
|
||||
if (head1 == head2) {
|
||||
if (head1) {
|
||||
game.addEffect(new GainAbilitySourceEffect(DoubleStrikeAbility.getInstance(), Duration.EndOfTurn), source);
|
||||
|
|
Loading…
Reference in a new issue