* Bushido - Fixed a bug that for bushido X (Fumiko, the Lowblood) , the value was not locked in as bushido ability resolved (still a problem with X and Takeno, Samurai Gernal left).

This commit is contained in:
LevelX2 2014-03-26 08:33:35 +01:00
parent d5148afaeb
commit 0afcaa5455
3 changed files with 5 additions and 2 deletions

View file

@ -57,6 +57,9 @@ public class BoostSourceEffect extends ContinuousEffectImpl<BoostSourceEffect> i
}
/**
* @param power
* @param toughness
* @param duration
* @param lockedIn if true, power and toughness will be calculated only once, when the ability resolves
*/
public BoostSourceEffect(DynamicValue power, DynamicValue toughness, Duration duration, boolean lockedIn) {

View file

@ -46,7 +46,7 @@ public class BushidoAbility extends BlocksOrBecomesBlockedTriggeredAbility {
}
public BushidoAbility(DynamicValue value) {
super(new BoostSourceEffect(value, value, Duration.EndOfTurn), false);
super(new BoostSourceEffect(value, value, Duration.EndOfTurn, true), false);
if (rule == null) {
rule = new StringBuilder("{this} has bushido X, where X is ").append(value.getMessage()).toString();
}

View file

@ -55,7 +55,7 @@ public enum CardRepository {
private static final String JDBC_URL = "jdbc:sqlite:db/cards.db";
private static final String VERSION_ENTITY_NAME = "card";
private static final long CARD_DB_VERSION = 18;
private static final long CARD_DB_VERSION = 19;
private final Random random = new Random();
private Dao<CardInfo, Object> cardDao;