diff --git a/Mage/src/main/java/mage/abilities/effects/Effect.java b/Mage/src/main/java/mage/abilities/effects/Effect.java index e4fe554493..17234c7f9d 100644 --- a/Mage/src/main/java/mage/abilities/effects/Effect.java +++ b/Mage/src/main/java/mage/abilities/effects/Effect.java @@ -46,7 +46,7 @@ public interface Effect extends Serializable { UUID getId(); void newId(); String getText(Mode mode); - void setText(String staticText); + Effect setText(String staticText); boolean apply(Game game, Ability source); Outcome getOutcome(); void setOutcome(Outcome outcome); diff --git a/Mage/src/main/java/mage/abilities/effects/EffectImpl.java b/Mage/src/main/java/mage/abilities/effects/EffectImpl.java index c0117cff6b..91f82ddaa9 100644 --- a/Mage/src/main/java/mage/abilities/effects/EffectImpl.java +++ b/Mage/src/main/java/mage/abilities/effects/EffectImpl.java @@ -85,8 +85,9 @@ public abstract class EffectImpl implements Effect { } @Override - public void setText(String staticText) { + public Effect setText(String staticText) { this.staticText = staticText; + return this; } @Override