From 80ffa1652ff72c6879186ff3d49f60c24f4f8e86 Mon Sep 17 00:00:00 2001 From: Oleg Agafonov Date: Sat, 18 Apr 2020 22:11:32 +0400 Subject: [PATCH] * Can't attack or block until pay abilities - fixed missing card texts (Floodtide Serpent, Qal Sisma Behemoth); --- .../combat/CantAttackBlockUnlessPaysSourceEffect.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Mage/src/main/java/mage/abilities/effects/common/combat/CantAttackBlockUnlessPaysSourceEffect.java b/Mage/src/main/java/mage/abilities/effects/common/combat/CantAttackBlockUnlessPaysSourceEffect.java index d1dc071f22..60051d3a23 100644 --- a/Mage/src/main/java/mage/abilities/effects/common/combat/CantAttackBlockUnlessPaysSourceEffect.java +++ b/Mage/src/main/java/mage/abilities/effects/common/combat/CantAttackBlockUnlessPaysSourceEffect.java @@ -1,4 +1,3 @@ - package mage.abilities.effects.common.combat; import mage.abilities.Ability; @@ -12,22 +11,19 @@ import mage.game.events.GameEvent; import mage.game.events.GameEvent.EventType; /** - * * @author LevelX2 */ public class CantAttackBlockUnlessPaysSourceEffect extends PayCostToAttackBlockEffectImpl { public CantAttackBlockUnlessPaysSourceEffect(Cost cost, RestrictType restrictType) { super(Duration.WhileOnBattlefield, Outcome.Detriment, restrictType, cost); - staticText = "{this} can't " + restrictType.toString() + " unless you " - + cost == null ? "" : cost.getText() - + (restrictType == RestrictType.ATTACK ? " (This cost is paid as attackers are declared.)" : ""); + staticText = "{this} can't " + restrictType.toString() + " unless you " + (cost == null ? "" : cost.getText()) + + (restrictType == RestrictType.ATTACK ? " (This cost is paid as attackers are declared.)" : ""); } public CantAttackBlockUnlessPaysSourceEffect(ManaCosts manaCosts, RestrictType restrictType) { super(Duration.WhileOnBattlefield, Outcome.Detriment, RestrictType.ATTACK_AND_BLOCK, manaCosts); - staticText = "{this} can't " + restrictType.toString() + " unless you pay " - + manaCosts == null ? "" : manaCosts.getText(); + staticText = "{this} can't " + restrictType.toString() + " unless you pay " + (manaCosts == null ? "" : manaCosts.getText()); } public CantAttackBlockUnlessPaysSourceEffect(CantAttackBlockUnlessPaysSourceEffect effect) {