* City of Solitude - added a specific message fo rthe rule changing effect.
package mage.cards.c;
import java.util.UUID;
+import mage.MageObject;
import mage.abilities.Ability;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.effects.ContinuousRuleModifyingEffectImpl;
@@ -80,6 +81,16 @@ class CityOfSolitudeEffect extends ContinuousRuleModifyingEffectImpl {
return event.getType() == EventType.CAST_SPELL || event.getType() == EventType.ACTIVATE_ABILITY;
}
+ @Override
+ public String getInfoMessage(Ability source, GameEvent event, Game game) {
+ MageObject sourceObject = game.getObject(source.getSourceId());
+ MageObject eventObject = game.getObject(event.getSourceId());
+ if (sourceObject != null && eventObject != null) {
+ return "You can cast or activate anability of " + eventObject.getIdName() + " only during your own turns (" + sourceObject.getIdName() + "). ";
+ }
+ return null;
+ }
+
@Override
public boolean applies(GameEvent event, Ability source, Game game) {
return !game.getActivePlayerId().equals(event.getPlayerId());
