mirror of
https://github.com/correl/mage.git
synced 2024-11-28 19:19:55 +00:00
Added missing attributes to config.cml for release.
This commit is contained in:
parent
3134900a73
commit
dc04058b00
2 changed files with 11 additions and 13 deletions
|
@ -43,7 +43,9 @@
|
||||||
maxSecondsIdle="600"
|
maxSecondsIdle="600"
|
||||||
minUserNameLength="3"
|
minUserNameLength="3"
|
||||||
maxUserNameLength="14"
|
maxUserNameLength="14"
|
||||||
userNamePattern="[^a-z0-9_]"
|
invalidUserNamePattern="[^a-z0-9_]"
|
||||||
|
minPasswordLength="8"
|
||||||
|
maxPasswordLength="100"
|
||||||
maxAiOpponents="15"
|
maxAiOpponents="15"
|
||||||
saveGameActivated="false"
|
saveGameActivated="false"
|
||||||
authenticationActivated="false"
|
authenticationActivated="false"
|
||||||
|
|
|
@ -54,15 +54,11 @@ import mage.target.targetpointer.FixedTarget;
|
||||||
* @author jeffwadsworth
|
* @author jeffwadsworth
|
||||||
*/
|
*/
|
||||||
public class Crystallization extends CardImpl {
|
public class Crystallization extends CardImpl {
|
||||||
|
|
||||||
public Crystallization(UUID ownerId) {
|
public Crystallization(UUID ownerId) {
|
||||||
super(ownerId, 144, "Crystallization", Rarity.COMMON, new CardType[]{CardType.ENCHANTMENT}, "{G/U}{W}");
|
super(ownerId, 144, "Crystallization", Rarity.COMMON, new CardType[]{CardType.ENCHANTMENT}, "{G/U}{W}");
|
||||||
this.expansionSetCode = "ARB";
|
this.expansionSetCode = "ARB";
|
||||||
this.subtype.add("Aura");
|
this.subtype.add("Aura");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Enchant creature
|
// Enchant creature
|
||||||
TargetPermanent auraTarget = new TargetCreaturePermanent();
|
TargetPermanent auraTarget = new TargetCreaturePermanent();
|
||||||
|
@ -77,11 +73,11 @@ public class Crystallization extends CardImpl {
|
||||||
// When enchanted creature becomes the target of a spell or ability, exile that creature.
|
// When enchanted creature becomes the target of a spell or ability, exile that creature.
|
||||||
this.addAbility(new CrystallizationTriggeredAbility());
|
this.addAbility(new CrystallizationTriggeredAbility());
|
||||||
}
|
}
|
||||||
|
|
||||||
public Crystallization(final Crystallization card) {
|
public Crystallization(final Crystallization card) {
|
||||||
super(card);
|
super(card);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Crystallization copy() {
|
public Crystallization copy() {
|
||||||
return new Crystallization(this);
|
return new Crystallization(this);
|
||||||
|
@ -89,15 +85,15 @@ public class Crystallization extends CardImpl {
|
||||||
}
|
}
|
||||||
|
|
||||||
class CrystallizationTriggeredAbility extends TriggeredAbilityImpl {
|
class CrystallizationTriggeredAbility extends TriggeredAbilityImpl {
|
||||||
|
|
||||||
public CrystallizationTriggeredAbility() {
|
public CrystallizationTriggeredAbility() {
|
||||||
super(Zone.BATTLEFIELD, new ExileTargetEffect());
|
super(Zone.BATTLEFIELD, new ExileTargetEffect());
|
||||||
}
|
}
|
||||||
|
|
||||||
public CrystallizationTriggeredAbility(final CrystallizationTriggeredAbility ability) {
|
public CrystallizationTriggeredAbility(final CrystallizationTriggeredAbility ability) {
|
||||||
super(ability);
|
super(ability);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public CrystallizationTriggeredAbility copy() {
|
public CrystallizationTriggeredAbility copy() {
|
||||||
return new CrystallizationTriggeredAbility(this);
|
return new CrystallizationTriggeredAbility(this);
|
||||||
|
@ -107,7 +103,7 @@ class CrystallizationTriggeredAbility extends TriggeredAbilityImpl {
|
||||||
public boolean checkEventType(GameEvent event, Game game) {
|
public boolean checkEventType(GameEvent event, Game game) {
|
||||||
return event.getType() == EventType.TARGETED;
|
return event.getType() == EventType.TARGETED;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean checkTrigger(GameEvent event, Game game) {
|
public boolean checkTrigger(GameEvent event, Game game) {
|
||||||
Permanent enchantment = game.getPermanent(sourceId);
|
Permanent enchantment = game.getPermanent(sourceId);
|
||||||
|
@ -120,7 +116,7 @@ class CrystallizationTriggeredAbility extends TriggeredAbilityImpl {
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getRule() {
|
public String getRule() {
|
||||||
return "When enchanted creature becomes the target of a spell or ability, exile that creature.";
|
return "When enchanted creature becomes the target of a spell or ability, exile that creature.";
|
||||||
|
|
Loading…
Reference in a new issue