Merge fix

This commit is contained in:
Oleg Agafonov 2021-07-25 01:16:12 +04:00
parent c6a3d5e588
commit 1e4f3524a9
2 changed files with 3 additions and 3 deletions

View file

@ -49,7 +49,7 @@ public class EpicEffect extends OneShotEffect {
if (spell == null) { if (spell == null) {
return false; return false;
} }
spell = spell.copy(); spell = spell.copy(); // it's a fake spell (template), real copy with events in EpicPushEffect
spell.getSpellAbility().getEffects().removeIf(EpicEffect.class::isInstance); spell.getSpellAbility().getEffects().removeIf(EpicEffect.class::isInstance);
game.addDelayedTriggeredAbility(new AtTheBeginOfYourNextUpkeepDelayedTriggeredAbility( game.addDelayedTriggeredAbility(new AtTheBeginOfYourNextUpkeepDelayedTriggeredAbility(
new EpicPushEffect(spell, rule), Duration.EndOfGame, false new EpicPushEffect(spell, rule), Duration.EndOfGame, false

View file

@ -34,9 +34,9 @@ public enum CardRepository {
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 = "card"; private static final String VERSION_ENTITY_NAME = "card";
// raise this if db structure was changed // raise this if db structure was changed
private static final long CARD_DB_VERSION = 54; private static final long CARD_DB_VERSION = 53;
// raise this if new cards were added to the server // raise this if new cards were added to the server
private static final long CARD_CONTENT_VERSION = 238; private static final long CARD_CONTENT_VERSION = 239;
private Dao<CardInfo, Object> cardDao; private Dao<CardInfo, Object> cardDao;
private Set<String> classNames; private Set<String> classNames;
private final RepositoryEventSource eventSource = new RepositoryEventSource(); private final RepositoryEventSource eventSource = new RepositoryEventSource();