mirror of
https://github.com/magefree/mage.git
synced 2025-12-28 14:32:06 -08:00
* 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:
parent
d5148afaeb
commit
0afcaa5455
3 changed files with 5 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue