Skip to content

Commit

Permalink
Regressions: Fix ai/mulligan & the unused quest-morph functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex committed May 9, 2018
1 parent a0747c1 commit 582fff1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Quest.js
Expand Up @@ -3,6 +3,7 @@ const sock = require('./sock');
const store = require('./store');
const util = require('./util');
const RngMock = require('./RngMock');
const Thing = require('./Thing');
const etgutil = require('./etgutil');
//Quest data
exports.necromancer = [
Expand Down Expand Up @@ -672,7 +673,7 @@ exports.mkQuestAi = function(questname, stage, area) {
});
const game = gamedata.game;
if (quest.morph) {
game.player1.deck = game.player1.deck.map(quest.morph.bind(quest));
game.player1.deck = game.player1.deck.map(x => new Thing(quest.morph(x.card)));
}
game.quest = [questname, stage];
game.wintext = quest.wintext || '';
Expand Down
2 changes: 1 addition & 1 deletion src/ai/mulligan.js
Expand Up @@ -11,4 +11,4 @@ module.exports = pl =>
card.isOf(Cards.GiftofOceanus) ||
card.isOf(Cards.QuantumLocket),
) ||
pl.deck.every(code => Cards.Codes[code].type != etg.Pillar);
pl.deck.every(({ card }) => card.type != etg.Pillar);

0 comments on commit 582fff1

Please sign in to comment.