Some fixes to Emblems of Starwars set and Elspeth, Sun Champion.

This commit is contained in:
LevelX2 2016-09-29 17:31:20 +02:00
parent 3516dc75e4
commit daf34c6bf0
4 changed files with 8 additions and 8 deletions

View file

@ -98,8 +98,8 @@ class ObiWanKenobiEmblem extends Emblem {
// Creatures you control get +1/+1 and have vigilance, first strike, and lifelink // Creatures you control get +1/+1 and have vigilance, first strike, and lifelink
public ObiWanKenobiEmblem() { public ObiWanKenobiEmblem() {
this.setName("Emblem - Obi-Wan"); this.setName("Emblem - Obi-Wan");
Ability ability = new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostControlledEffect(1, 1, Duration.WhileOnBattlefield)); Ability ability = new SimpleStaticAbility(Zone.COMMAND, new BoostControlledEffect(1, 1, Duration.EndOfGame));
Effect effect = new GainAbilityControlledEffect(VigilanceAbility.getInstance(), Duration.WhileOnBattlefield); Effect effect = new GainAbilityControlledEffect(VigilanceAbility.getInstance(), Duration.EndOfGame);
effect.setText("and have vigilance,"); effect.setText("and have vigilance,");
ability.addEffect(effect); ability.addEffect(effect);
effect = new GainAbilityControlledEffect(FirstStrikeAbility.getInstance(), Duration.WhileOnBattlefield); effect = new GainAbilityControlledEffect(FirstStrikeAbility.getInstance(), Duration.WhileOnBattlefield);

View file

@ -138,10 +138,10 @@ class YodaEmblem extends Emblem {
// You get an emblem with "Hexproof, you and your creatures have." // You get an emblem with "Hexproof, you and your creatures have."
public YodaEmblem() { public YodaEmblem() {
this.setName("Emblem - Yoda"); this.setName("Emblem - Yoda");
Effect effect = new GainAbilityControlledEffect(HexproofAbility.getInstance(), Duration.WhileOnBattlefield); Effect effect = new GainAbilityControlledEffect(HexproofAbility.getInstance(), Duration.EndOfGame);
effect.setText("Hexproof,"); effect.setText("Hexproof,");
Ability ability = new SimpleStaticAbility(Zone.BATTLEFIELD, effect); Ability ability = new SimpleStaticAbility(Zone.COMMAND, effect);
effect = new GainAbilityControllerEffect(HexproofAbility.getInstance(), Duration.WhileOnBattlefield); effect = new GainAbilityControllerEffect(HexproofAbility.getInstance(), Duration.EndOfGame);
effect.setText(" you and your creatures have"); effect.setText(" you and your creatures have");
ability.addEffect(effect); ability.addEffect(effect);
getAbilities().add(ability); getAbilities().add(ability);

View file

@ -93,8 +93,8 @@ class ElspethSunsChampionEmblem extends Emblem {
public ElspethSunsChampionEmblem() { public ElspethSunsChampionEmblem() {
this.setName("EMBLEM: Elspeth, Sun's Champion"); this.setName("EMBLEM: Elspeth, Sun's Champion");
Ability ability = new SimpleStaticAbility(Zone.COMMAND, new BoostControlledEffect(2, 2, Duration.WhileOnBattlefield, filter, false)); Ability ability = new SimpleStaticAbility(Zone.COMMAND, new BoostControlledEffect(2, 2, Duration.EndOfGame, filter, false));
ability.addEffect(new GainAbilityControlledEffect(FlyingAbility.getInstance(), Duration.WhileOnBattlefield, filter)); ability.addEffect(new GainAbilityControlledEffect(FlyingAbility.getInstance(), Duration.EndOfGame, filter));
this.getAbilities().add(ability); this.getAbilities().add(ability);
} }

View file

@ -27,7 +27,7 @@ public enum ExpansionRepository {
private static final String JDBC_URL = "jdbc:h2:file:./db/cards.h2;AUTO_SERVER=TRUE"; private static final String JDBC_URL = "jdbc:h2:file:./db/cards.h2;AUTO_SERVER=TRUE";
private static final String VERSION_ENTITY_NAME = "expansion"; private static final String VERSION_ENTITY_NAME = "expansion";
private static final long EXPANSION_DB_VERSION = 5; private static final long EXPANSION_DB_VERSION = 5;
private static final long EXPANSION_CONTENT_VERSION = 10; private static final long EXPANSION_CONTENT_VERSION = 11;
private Dao<ExpansionInfo, Object> expansionDao; private Dao<ExpansionInfo, Object> expansionDao;