Code cleanup

This commit is contained in:
Oleg Agafonov 2020-06-10 00:22:48 +04:00
parent 5e7c3ea9f9
commit 44b84bfbbc
2 changed files with 10 additions and 11 deletions

View file

@ -56,13 +56,13 @@
saveGameActivated="false" saveGameActivated="false"
authenticationActivated="false" authenticationActivated="false"
googleAccount="" googleAccount=""
mailgunApiKey="key-d93e81f19a9c9ed243ebb7cc9381385c" mailgunApiKey=""
mailgunDomain="sandbox401a433f30d445309a5e86b6c53f7812.mailgun.org" mailgunDomain=""
mailSmtpHost="smtp.1und1.de" mailSmtpHost=""
mailSmtpPort="465" mailSmtpPort=""
mailUser="xmageserver@online.de" mailUser=""
mailPassword="24wrsfxv" mailPassword=""
mailFromAddress="xmageserver@online.de" mailFromAddress=""
/> />
<playerTypes> <playerTypes>
<playerType name="Human" jar="mage-player-human.jar" className="mage.player.human.HumanPlayer"/> <playerType name="Human" jar="mage-player-human.jar" className="mage.player.human.HumanPlayer"/>

View file

@ -30,10 +30,10 @@ public final class MeddlingMage extends CardImpl {
this.power = new MageInt(2); this.power = new MageInt(2);
this.toughness = new MageInt(2); this.toughness = new MageInt(2);
// As Meddling Mage enters the battlefield, name a nonland card. // As Meddling Mage enters the battlefield, choose a nonland card name.
this.addAbility(new AsEntersBattlefieldAbility(new ChooseACardNameEffect(ChooseACardNameEffect.TypeOfName.NON_LAND_NAME))); this.addAbility(new AsEntersBattlefieldAbility(new ChooseACardNameEffect(ChooseACardNameEffect.TypeOfName.NON_LAND_NAME)));
//The named card can't be cast. // Spells with the chosen name can't be cast.
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new MeddlingMageReplacementEffect())); this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new MeddlingMageReplacementEffect()));
} }
@ -51,7 +51,7 @@ class MeddlingMageReplacementEffect extends ContinuousRuleModifyingEffectImpl {
public MeddlingMageReplacementEffect() { public MeddlingMageReplacementEffect() {
super(Duration.WhileOnBattlefield, Outcome.Detriment); super(Duration.WhileOnBattlefield, Outcome.Detriment);
staticText = "Spells with the chosen name can't be cast"; staticText = "Spells with the chosen name can't be cast.";
} }
public MeddlingMageReplacementEffect(final MeddlingMageReplacementEffect effect) { public MeddlingMageReplacementEffect(final MeddlingMageReplacementEffect effect) {
@ -89,6 +89,5 @@ class MeddlingMageReplacementEffect extends ContinuousRuleModifyingEffectImpl {
return object != null return object != null
&& !object.isCopy() && !object.isCopy()
&& CardUtil.haveSameNames(object, cardName, game); && CardUtil.haveSameNames(object, cardName, game);
} }
} }