diff --git a/Mage.Sets/src/mage/cards/g/GlitteringLion.java b/Mage.Sets/src/mage/cards/g/GlitteringLion.java index 737200acbc..65816372ed 100644 --- a/Mage.Sets/src/mage/cards/g/GlitteringLion.java +++ b/Mage.Sets/src/mage/cards/g/GlitteringLion.java @@ -35,9 +35,9 @@ public final class GlitteringLion extends CardImpl { // Prevent all damage that would be dealt to Glittering Lion. this.addAbility(GlitteringLionAbility.getInstance()); // {3}: Until end of turn, Glittering Lion loses "Prevent all damage that would be dealt to Glittering Lion." Any player may activate this ability. - SimpleActivatedAbility ability2 = new SimpleActivatedAbility(Zone.BATTLEFIELD, new LoseAbilitySourceEffect(GlitteringLionAbility.getInstance(), Duration.EndOfTurn).setText("Until end of turn, {this} loses \"Prevent all damage that would be dealt to {this}.\""), new ManaCostsImpl("{3}")); + SimpleActivatedAbility ability2 = new SimpleActivatedAbility(Zone.BATTLEFIELD, new LoseAbilitySourceEffect(GlitteringLionAbility.getInstance(), Duration.EndOfTurn).setText("Until end of turn, {this} loses \"Prevent all damage that would be dealt to {this}.\" Any player may activate this ability"), new ManaCostsImpl("{3}")); ability2.setMayActivate(TargetController.ANY); - ability2.addEffect(new InfoEffect("Any player may activate this ability")); + // ability2.addEffect(new InfoEffect("Any player may activate this ability")); this.addAbility(ability2); } diff --git a/Mage/src/main/java/mage/abilities/effects/common/PreventAllDamageToSourceEffect.java b/Mage/src/main/java/mage/abilities/effects/common/PreventAllDamageToSourceEffect.java index dfc149a587..22cd8c14e1 100644 --- a/Mage/src/main/java/mage/abilities/effects/common/PreventAllDamageToSourceEffect.java +++ b/Mage/src/main/java/mage/abilities/effects/common/PreventAllDamageToSourceEffect.java @@ -16,7 +16,12 @@ public class PreventAllDamageToSourceEffect extends PreventionEffectImpl { public PreventAllDamageToSourceEffect(Duration duration) { super(duration, Integer.MAX_VALUE, false); - staticText = "Prevent all damage that would be dealt to {this} " + duration.toString(); + //Some durations have no text + if ( duration.toString().length()>0){ + staticText = "Prevent all damage that would be dealt to {this} " + duration.toString(); + } else { + staticText = "Prevent all damage that would be dealt to {this}"; + } } public PreventAllDamageToSourceEffect(final PreventAllDamageToSourceEffect effect) {