mirror of
https://github.com/correl/mage.git
synced 2024-12-01 03:00:09 +00:00
Code cleanup
This commit is contained in:
parent
5e7c3ea9f9
commit
44b84bfbbc
2 changed files with 10 additions and 11 deletions
|
@ -56,13 +56,13 @@
|
|||
saveGameActivated="false"
|
||||
authenticationActivated="false"
|
||||
googleAccount=""
|
||||
mailgunApiKey="key-d93e81f19a9c9ed243ebb7cc9381385c"
|
||||
mailgunDomain="sandbox401a433f30d445309a5e86b6c53f7812.mailgun.org"
|
||||
mailSmtpHost="smtp.1und1.de"
|
||||
mailSmtpPort="465"
|
||||
mailUser="xmageserver@online.de"
|
||||
mailPassword="24wrsfxv"
|
||||
mailFromAddress="xmageserver@online.de"
|
||||
mailgunApiKey=""
|
||||
mailgunDomain=""
|
||||
mailSmtpHost=""
|
||||
mailSmtpPort=""
|
||||
mailUser=""
|
||||
mailPassword=""
|
||||
mailFromAddress=""
|
||||
/>
|
||||
<playerTypes>
|
||||
<playerType name="Human" jar="mage-player-human.jar" className="mage.player.human.HumanPlayer"/>
|
||||
|
|
|
@ -30,10 +30,10 @@ public final class MeddlingMage extends CardImpl {
|
|||
this.power = 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)));
|
||||
|
||||
//The named card can't be cast.
|
||||
// Spells with the chosen name can't be cast.
|
||||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new MeddlingMageReplacementEffect()));
|
||||
}
|
||||
|
||||
|
@ -51,7 +51,7 @@ class MeddlingMageReplacementEffect extends ContinuousRuleModifyingEffectImpl {
|
|||
|
||||
public MeddlingMageReplacementEffect() {
|
||||
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) {
|
||||
|
@ -89,6 +89,5 @@ class MeddlingMageReplacementEffect extends ContinuousRuleModifyingEffectImpl {
|
|||
return object != null
|
||||
&& !object.isCopy()
|
||||
&& CardUtil.haveSameNames(object, cardName, game);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue