@firestone-hs/simulate-bgs-battle 1.1.715 → 1.1.717
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cards/impl/bg-spell/blood-gem-quilboar-divine-shield.js +2 -2
- package/dist/cards/impl/bg-spell/blood-gem-quilboar-divine-shield.js.map +1 -1
- package/dist/cards/impl/bg-spell/blood-gem-quilboar-reborn.js +2 -2
- package/dist/cards/impl/bg-spell/blood-gem-quilboar-reborn.js.map +1 -1
- package/dist/cards/impl/bg-spell/blood-gem-quilboar-taunt.js +2 -2
- package/dist/cards/impl/bg-spell/blood-gem-quilboar-taunt.js.map +1 -1
- package/dist/cards/impl/bg-spell/conflagration.js +2 -2
- package/dist/cards/impl/bg-spell/conflagration.js.map +1 -1
- package/dist/cards/impl/bg-spell/deepwater-clan.js +2 -2
- package/dist/cards/impl/bg-spell/deepwater-clan.js.map +1 -1
- package/dist/cards/impl/bg-spell/queens-command.js +2 -2
- package/dist/cards/impl/bg-spell/queens-command.js.map +1 -1
- package/dist/cards/impl/bg-spell/shifting-tide.js.map +1 -1
- package/dist/cards/impl/minion/abyssal-bruiser.js +2 -4
- package/dist/cards/impl/minion/abyssal-bruiser.js.map +1 -1
- package/dist/cards/impl/minion/bristleback-bully.js +1 -3
- package/dist/cards/impl/minion/bristleback-bully.js.map +1 -1
- package/dist/cards/impl/minion/chromadrake-pool.js +5 -5
- package/dist/cards/impl/minion/chromadrake-pool.js.map +1 -1
- package/dist/cards/impl/minion/clunker-junker.js +4 -2
- package/dist/cards/impl/minion/clunker-junker.js.map +1 -1
- package/dist/cards/impl/minion/dead-sea-ravager.js +2 -3
- package/dist/cards/impl/minion/dead-sea-ravager.js.map +1 -1
- package/dist/cards/impl/minion/deepwater-chieftain.js +2 -6
- package/dist/cards/impl/minion/deepwater-chieftain.js.map +1 -1
- package/dist/cards/impl/minion/firelands-fugitive.js +1 -3
- package/dist/cards/impl/minion/firelands-fugitive.js.map +1 -1
- package/dist/cards/impl/minion/ingenious-inventor.js +2 -3
- package/dist/cards/impl/minion/ingenious-inventor.js.map +1 -1
- package/dist/cards/impl/minion/leyline-surfacer.js +2 -6
- package/dist/cards/impl/minion/leyline-surfacer.js.map +1 -1
- package/dist/cards/impl/minion/mummifier.js +1 -1
- package/dist/cards/impl/minion/mummifier.js.map +1 -1
- package/dist/cards/impl/minion/redtusk-thornraiser.js +1 -3
- package/dist/cards/impl/minion/redtusk-thornraiser.js.map +1 -1
- package/dist/cards/impl/minion/tide-raiser.js +1 -1
- package/dist/cards/impl/minion/tide-raiser.js.map +1 -1
- package/dist/cards/impl/minion/vinespeaker.js +1 -2
- package/dist/cards/impl/minion/vinespeaker.js.map +1 -1
- package/dist/cards/impl/minion/wrathscale-rogue.js.map +1 -1
- package/dist/cards/impl/trinket/deathtouch-apple.js +1 -2
- package/dist/cards/impl/trinket/deathtouch-apple.js.map +1 -1
- package/dist/cards/impl/trinket/rylak-portrait.js +1 -2
- package/dist/cards/impl/trinket/rylak-portrait.js.map +1 -1
- package/dist/cards/impl/trinket/sky-golem-portrait-enchantment.js +1 -2
- package/dist/cards/impl/trinket/sky-golem-portrait-enchantment.js.map +1 -1
- package/dist/cards/impl/trinket/sky-golem-portrait.js +2 -3
- package/dist/cards/impl/trinket/sky-golem-portrait.js.map +1 -1
- package/dist/cards/impl/trinket/soul-fermenter.js +6 -3
- package/dist/cards/impl/trinket/soul-fermenter.js.map +1 -1
- package/dist/input-clone.js +1 -1
- package/dist/input-clone.js.map +1 -1
- package/dist/services/card-ids.d.ts +165 -17
- package/dist/services/card-ids.js.map +1 -1
- package/dist/simulate-bgs-battle.js +4 -4
- package/dist/simulate-bgs-battle.js.map +1 -1
- package/dist/simulation/auras.js +4 -2
- package/dist/simulation/auras.js.map +1 -1
- package/dist/simulation/avenge.js +4 -0
- package/dist/simulation/avenge.js.map +1 -1
- package/dist/simulation/blood-gems.js +1 -4
- package/dist/simulation/blood-gems.js.map +1 -1
- package/dist/simulation/reborn.js +25 -23
- package/dist/simulation/reborn.js.map +1 -1
- package/dist/simulation/start-of-combat/soc-trinket.js +1 -1
- package/dist/simulation/start-of-combat/soc-trinket.js.map +1 -1
- package/dist/temp-card-ids.d.ts +1 -12
- package/dist/temp-card-ids.js +1 -12
- package/dist/temp-card-ids.js.map +1 -1
- package/package.json +2 -2
|
@@ -6,9 +6,9 @@ const divine_shield_1 = require("../../../keywords/divine-shield");
|
|
|
6
6
|
const blood_gems_1 = require("../../../simulation/blood-gems");
|
|
7
7
|
const utils_1 = require("../../../utils");
|
|
8
8
|
exports.BloodGemQuilboarDivineShieldSpell = {
|
|
9
|
-
cardIds: ["BG20_GEM_DivineShield"
|
|
9
|
+
cardIds: ["BG20_GEM_DivineShield"],
|
|
10
10
|
castTavernSpell: (spellCardId, input) => {
|
|
11
|
-
const mult =
|
|
11
|
+
const mult = 1;
|
|
12
12
|
(0, blood_gems_1.playBloodGemsOn)(input.source, input.target, mult, input.board, input.hero, input.otherBoard, input.otherHero, input.gameState);
|
|
13
13
|
if ((0, utils_1.hasCorrectTribe)(input.target, input.hero, reference_data_1.Race.QUILBOAR, input.gameState.anomalies, input.gameState.allCards)) {
|
|
14
14
|
(0, divine_shield_1.updateDivineShield)(input.target, input.board, input.hero, input.otherHero, true, input.gameState);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blood-gem-quilboar-divine-shield.js","sourceRoot":"","sources":["../../../../src/cards/impl/bg-spell/blood-gem-quilboar-divine-shield.ts"],"names":[],"mappings":";;;AAAA,iEAAoD;
|
|
1
|
+
{"version":3,"file":"blood-gem-quilboar-divine-shield.js","sourceRoot":"","sources":["../../../../src/cards/impl/bg-spell/blood-gem-quilboar-divine-shield.ts"],"names":[],"mappings":";;;AAAA,iEAAoD;AACpD,mEAAqE;AAErE,+DAAiE;AACjE,0CAAiD;AAGpC,QAAA,iCAAiC,GAAoB;IACjE,OAAO,EAAE,yBAAwC;IACjD,eAAe,EAAE,CAAC,WAAmB,EAAE,KAAqB,EAAE,EAAE;QAC/D,MAAM,IAAI,GAAG,CAAC,CAAC;QACf,IAAA,4BAAe,EACd,KAAK,CAAC,MAAM,EACZ,KAAK,CAAC,MAAM,EACZ,IAAI,EACJ,KAAK,CAAC,KAAK,EACX,KAAK,CAAC,IAAI,EACV,KAAK,CAAC,UAAU,EAChB,KAAK,CAAC,SAAS,EACf,KAAK,CAAC,SAAS,CACf,CAAC;QACF,IACC,IAAA,uBAAe,EACd,KAAK,CAAC,MAAM,EACZ,KAAK,CAAC,IAAI,EACV,qBAAI,CAAC,QAAQ,EACb,KAAK,CAAC,SAAS,CAAC,SAAS,EACzB,KAAK,CAAC,SAAS,CAAC,QAAQ,CACxB,EACA;YACD,IAAA,kCAAkB,EAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,SAAS,EAAE,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;SAClG;IACF,CAAC;CACD,CAAC","sourcesContent":["import { Race } from '@firestone-hs/reference-data';\r\nimport { updateDivineShield } from '../../../keywords/divine-shield';\r\nimport { CardIds } from '../../../services/card-ids';\r\nimport { playBloodGemsOn } from '../../../simulation/blood-gems';\r\nimport { hasCorrectTribe } from '../../../utils';\r\nimport { CastSpellInput, TavernSpellCard } from '../../card.interface';\r\n\r\nexport const BloodGemQuilboarDivineShieldSpell: TavernSpellCard = {\r\n\tcardIds: [CardIds.BloodGem_BG20_GEM_DivineShield],\r\n\tcastTavernSpell: (spellCardId: string, input: CastSpellInput) => {\r\n\t\tconst mult = 1;\r\n\t\tplayBloodGemsOn(\r\n\t\t\tinput.source,\r\n\t\t\tinput.target,\r\n\t\t\tmult,\r\n\t\t\tinput.board,\r\n\t\t\tinput.hero,\r\n\t\t\tinput.otherBoard,\r\n\t\t\tinput.otherHero,\r\n\t\t\tinput.gameState,\r\n\t\t);\r\n\t\tif (\r\n\t\t\thasCorrectTribe(\r\n\t\t\t\tinput.target,\r\n\t\t\t\tinput.hero,\r\n\t\t\t\tRace.QUILBOAR,\r\n\t\t\t\tinput.gameState.anomalies,\r\n\t\t\t\tinput.gameState.allCards,\r\n\t\t\t)\r\n\t\t) {\r\n\t\t\tupdateDivineShield(input.target, input.board, input.hero, input.otherHero, true, input.gameState);\r\n\t\t}\r\n\t},\r\n};\r\n"]}
|
|
@@ -6,9 +6,9 @@ const reborn_1 = require("../../../keywords/reborn");
|
|
|
6
6
|
const blood_gems_1 = require("../../../simulation/blood-gems");
|
|
7
7
|
const utils_1 = require("../../../utils");
|
|
8
8
|
exports.BloodGemQuilboarRebornSpell = {
|
|
9
|
-
cardIds: ["BG20_GEM_Reborn"
|
|
9
|
+
cardIds: ["BG20_GEM_Reborn"],
|
|
10
10
|
castTavernSpell: (spellCardId, input) => {
|
|
11
|
-
const mult =
|
|
11
|
+
const mult = 1;
|
|
12
12
|
(0, blood_gems_1.playBloodGemsOn)(input.source, input.target, mult, input.board, input.hero, input.otherBoard, input.otherHero, input.gameState);
|
|
13
13
|
if ((0, utils_1.hasCorrectTribe)(input.target, input.hero, reference_data_1.Race.QUILBOAR, input.gameState.anomalies, input.gameState.allCards)) {
|
|
14
14
|
(0, reborn_1.updateReborn)(input.target, true, input.board, input.hero, input.otherHero, input.gameState);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blood-gem-quilboar-reborn.js","sourceRoot":"","sources":["../../../../src/cards/impl/bg-spell/blood-gem-quilboar-reborn.ts"],"names":[],"mappings":";;;AAAA,iEAAoD;
|
|
1
|
+
{"version":3,"file":"blood-gem-quilboar-reborn.js","sourceRoot":"","sources":["../../../../src/cards/impl/bg-spell/blood-gem-quilboar-reborn.ts"],"names":[],"mappings":";;;AAAA,iEAAoD;AACpD,qDAAwD;AAExD,+DAAiE;AACjE,0CAAiD;AAGpC,QAAA,2BAA2B,GAAoB;IAC3D,OAAO,EAAE,mBAAkC;IAC3C,eAAe,EAAE,CAAC,WAAmB,EAAE,KAAqB,EAAE,EAAE;QAC/D,MAAM,IAAI,GAAG,CAAC,CAAC;QACf,IAAA,4BAAe,EACd,KAAK,CAAC,MAAM,EACZ,KAAK,CAAC,MAAM,EACZ,IAAI,EACJ,KAAK,CAAC,KAAK,EACX,KAAK,CAAC,IAAI,EACV,KAAK,CAAC,UAAU,EAChB,KAAK,CAAC,SAAS,EACf,KAAK,CAAC,SAAS,CACf,CAAC;QACF,IACC,IAAA,uBAAe,EACd,KAAK,CAAC,MAAM,EACZ,KAAK,CAAC,IAAI,EACV,qBAAI,CAAC,QAAQ,EACb,KAAK,CAAC,SAAS,CAAC,SAAS,EACzB,KAAK,CAAC,SAAS,CAAC,QAAQ,CACxB,EACA;YACD,IAAA,qBAAY,EAAC,KAAK,CAAC,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;SAC5F;IACF,CAAC;CACD,CAAC","sourcesContent":["import { Race } from '@firestone-hs/reference-data';\r\nimport { updateReborn } from '../../../keywords/reborn';\r\nimport { CardIds } from '../../../services/card-ids';\r\nimport { playBloodGemsOn } from '../../../simulation/blood-gems';\r\nimport { hasCorrectTribe } from '../../../utils';\r\nimport { CastSpellInput, TavernSpellCard } from '../../card.interface';\r\n\r\nexport const BloodGemQuilboarRebornSpell: TavernSpellCard = {\r\n\tcardIds: [CardIds.BloodGem_BG20_GEM_Reborn],\r\n\tcastTavernSpell: (spellCardId: string, input: CastSpellInput) => {\r\n\t\tconst mult = 1;\r\n\t\tplayBloodGemsOn(\r\n\t\t\tinput.source,\r\n\t\t\tinput.target,\r\n\t\t\tmult,\r\n\t\t\tinput.board,\r\n\t\t\tinput.hero,\r\n\t\t\tinput.otherBoard,\r\n\t\t\tinput.otherHero,\r\n\t\t\tinput.gameState,\r\n\t\t);\r\n\t\tif (\r\n\t\t\thasCorrectTribe(\r\n\t\t\t\tinput.target,\r\n\t\t\t\tinput.hero,\r\n\t\t\t\tRace.QUILBOAR,\r\n\t\t\t\tinput.gameState.anomalies,\r\n\t\t\t\tinput.gameState.allCards,\r\n\t\t\t)\r\n\t\t) {\r\n\t\t\tupdateReborn(input.target, true, input.board, input.hero, input.otherHero, input.gameState);\r\n\t\t}\r\n\t},\r\n};\r\n"]}
|
|
@@ -6,9 +6,9 @@ const taunt_1 = require("../../../keywords/taunt");
|
|
|
6
6
|
const blood_gems_1 = require("../../../simulation/blood-gems");
|
|
7
7
|
const utils_1 = require("../../../utils");
|
|
8
8
|
exports.BloodGemQuilboarTauntSpell = {
|
|
9
|
-
cardIds: ["BG20_GEM_Taunt"
|
|
9
|
+
cardIds: ["BG20_GEM_Taunt"],
|
|
10
10
|
castTavernSpell: (spellCardId, input) => {
|
|
11
|
-
const mult =
|
|
11
|
+
const mult = 1;
|
|
12
12
|
(0, blood_gems_1.playBloodGemsOn)(input.source, input.target, mult, input.board, input.hero, input.otherBoard, input.otherHero, input.gameState);
|
|
13
13
|
if ((0, utils_1.hasCorrectTribe)(input.target, input.hero, reference_data_1.Race.QUILBOAR, input.gameState.anomalies, input.gameState.allCards)) {
|
|
14
14
|
(0, taunt_1.updateTaunt)(input.target, true, input.board, input.hero, input.otherHero, input.gameState);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blood-gem-quilboar-taunt.js","sourceRoot":"","sources":["../../../../src/cards/impl/bg-spell/blood-gem-quilboar-taunt.ts"],"names":[],"mappings":";;;AAAA,iEAAoD;
|
|
1
|
+
{"version":3,"file":"blood-gem-quilboar-taunt.js","sourceRoot":"","sources":["../../../../src/cards/impl/bg-spell/blood-gem-quilboar-taunt.ts"],"names":[],"mappings":";;;AAAA,iEAAoD;AACpD,mDAAsD;AAEtD,+DAAiE;AACjE,0CAAiD;AAGpC,QAAA,0BAA0B,GAAoB;IAC1D,OAAO,EAAE,kBAAsC;IAC/C,eAAe,EAAE,CAAC,WAAmB,EAAE,KAAqB,EAAE,EAAE;QAC/D,MAAM,IAAI,GAAG,CAAC,CAAC;QACf,IAAA,4BAAe,EACd,KAAK,CAAC,MAAM,EACZ,KAAK,CAAC,MAAM,EACZ,IAAI,EACJ,KAAK,CAAC,KAAK,EACX,KAAK,CAAC,IAAI,EACV,KAAK,CAAC,UAAU,EAChB,KAAK,CAAC,SAAS,EACf,KAAK,CAAC,SAAS,CACf,CAAC;QACF,IACC,IAAA,uBAAe,EACd,KAAK,CAAC,MAAM,EACZ,KAAK,CAAC,IAAI,EACV,qBAAI,CAAC,QAAQ,EACb,KAAK,CAAC,SAAS,CAAC,SAAS,EACzB,KAAK,CAAC,SAAS,CAAC,QAAQ,CACxB,EACA;YACD,IAAA,mBAAW,EAAC,KAAK,CAAC,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;SAC3F;IACF,CAAC;CACD,CAAC","sourcesContent":["import { Race } from '@firestone-hs/reference-data';\r\nimport { updateTaunt } from '../../../keywords/taunt';\r\nimport { CardIds } from '../../../services/card-ids';\r\nimport { playBloodGemsOn } from '../../../simulation/blood-gems';\r\nimport { hasCorrectTribe } from '../../../utils';\r\nimport { CastSpellInput, TavernSpellCard } from '../../card.interface';\r\n\r\nexport const BloodGemQuilboarTauntSpell: TavernSpellCard = {\r\n\tcardIds: [CardIds.BloodGemToken_BG20_GEM_Taunt],\r\n\tcastTavernSpell: (spellCardId: string, input: CastSpellInput) => {\r\n\t\tconst mult = 1;\r\n\t\tplayBloodGemsOn(\r\n\t\t\tinput.source,\r\n\t\t\tinput.target,\r\n\t\t\tmult,\r\n\t\t\tinput.board,\r\n\t\t\tinput.hero,\r\n\t\t\tinput.otherBoard,\r\n\t\t\tinput.otherHero,\r\n\t\t\tinput.gameState,\r\n\t\t);\r\n\t\tif (\r\n\t\t\thasCorrectTribe(\r\n\t\t\t\tinput.target,\r\n\t\t\t\tinput.hero,\r\n\t\t\t\tRace.QUILBOAR,\r\n\t\t\t\tinput.gameState.anomalies,\r\n\t\t\t\tinput.gameState.allCards,\r\n\t\t\t)\r\n\t\t) {\r\n\t\t\tupdateTaunt(input.target, true, input.board, input.hero, input.otherHero, input.gameState);\r\n\t\t}\r\n\t},\r\n};\r\n"]}
|
|
@@ -4,10 +4,10 @@ exports.Conflagration = void 0;
|
|
|
4
4
|
const stats_1 = require("../../../simulation/stats");
|
|
5
5
|
const utils_1 = require("../../../utils");
|
|
6
6
|
exports.Conflagration = {
|
|
7
|
-
cardIds: ["BG35_910"
|
|
7
|
+
cardIds: ["BG35_910"],
|
|
8
8
|
castTavernSpell: (spellCardId, input) => {
|
|
9
9
|
var _a, _b;
|
|
10
|
-
const mult =
|
|
10
|
+
const mult = 1;
|
|
11
11
|
const target = (_a = input.target) !== null && _a !== void 0 ? _a : input.board.find((e) => e.health > 0 && !e.definitelyDead);
|
|
12
12
|
if (!target) {
|
|
13
13
|
return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conflagration.js","sourceRoot":"","sources":["../../../../src/cards/impl/bg-spell/conflagration.ts"],"names":[],"mappings":";;;AACA,qDAAwD;AACxD,0CAAyD;AAG5C,QAAA,aAAa,GAAoB;IAC7C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"conflagration.js","sourceRoot":"","sources":["../../../../src/cards/impl/bg-spell/conflagration.ts"],"names":[],"mappings":";;;AACA,qDAAwD;AACxD,0CAAyD;AAG5C,QAAA,aAAa,GAAoB;IAC7C,OAAO,EAAE,YAAgC;IACzC,eAAe,EAAE,CAAC,WAAmB,EAAE,KAAqB,EAAE,EAAE;;QAC/D,MAAM,IAAI,GAAG,CAAC,CAAC;QACf,MAAM,MAAM,GAAG,MAAA,KAAK,CAAC,MAAM,mCAAI,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC;QAC1F,IAAI,CAAC,MAAM,EAAE;YACZ,OAAO;SACP;QACD,MAAM,gBAAgB,GAAG,MAAA,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,wBAAwB,mCAAI,CAAC,CAAC;QAC7E,MAAM,UAAU,GAAG,CAAC,CAAC,GAAG,gBAAgB,CAAC,GAAG,IAAI,CAAC;QACjD,MAAM,UAAU,GAAG,CAAC,CAAC,GAAG,gBAAgB,CAAC,GAAG,IAAI,CAAC;QACjD,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,IAAA,+BAAuB,EACjD,KAAK,CAAC,IAAI,EACV,UAAU,EACV,UAAU,EACV,KAAK,CAAC,SAAS,CAAC,QAAQ,EACxB,KAAK,CAAC,WAAW,CACjB,CAAC;QACF,IAAA,mBAAW,EAAC,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAC7F,CAAC;CACD,CAAC","sourcesContent":["import { CardIds } from '../../../services/card-ids';\r\nimport { modifyStats } from '../../../simulation/stats';\r\nimport { withTavernSpellStatBuff } from '../../../utils';\r\nimport { CastSpellInput, TavernSpellCard } from '../../card.interface';\r\n\r\nexport const Conflagration: TavernSpellCard = {\r\n\tcardIds: [CardIds.Conflagration_BG35_910],\r\n\tcastTavernSpell: (spellCardId: string, input: CastSpellInput) => {\r\n\t\tconst mult = 1;\r\n\t\tconst target = input.target ?? input.board.find((e) => e.health > 0 && !e.definitelyDead);\r\n\t\tif (!target) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tconst elementalsPlayed = input.hero.globalInfo.ElementalsPlayedThisTurn ?? 0;\r\n\t\tconst baseAttack = (4 + elementalsPlayed) * mult;\r\n\t\tconst baseHealth = (4 + elementalsPlayed) * mult;\r\n\t\tconst { attack, health } = withTavernSpellStatBuff(\r\n\t\t\tinput.hero,\r\n\t\t\tbaseAttack,\r\n\t\t\tbaseHealth,\r\n\t\t\tinput.gameState.allCards,\r\n\t\t\tinput.spellCardId,\r\n\t\t);\r\n\t\tmodifyStats(target, input.source, attack, health, input.board, input.hero, input.gameState);\r\n\t},\r\n};\r\n"]}
|
|
@@ -5,10 +5,10 @@ const reference_data_1 = require("@firestone-hs/reference-data");
|
|
|
5
5
|
const stats_1 = require("../../../simulation/stats");
|
|
6
6
|
const utils_1 = require("../../../utils");
|
|
7
7
|
exports.DeepwaterClan = {
|
|
8
|
-
cardIds: ["BG35_149"
|
|
8
|
+
cardIds: ["BG35_149"],
|
|
9
9
|
castTavernSpell: (spellCardId, input) => {
|
|
10
10
|
var _a;
|
|
11
|
-
const mult =
|
|
11
|
+
const mult = 1;
|
|
12
12
|
const { attack, health } = (0, utils_1.withTavernSpellStatBuff)(input.hero, 2 * mult, 2 * mult, input.gameState.allCards, input.spellCardId);
|
|
13
13
|
const target = (_a = input.target) !== null && _a !== void 0 ? _a : input.board.find((e) => e.health > 0 && !e.definitelyDead);
|
|
14
14
|
if (target) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deepwater-clan.js","sourceRoot":"","sources":["../../../../src/cards/impl/bg-spell/deepwater-clan.ts"],"names":[],"mappings":";;;AAAA,iEAAoD;AAEpD,qDAAwD;AACxD,0CAA0E;AAG7D,QAAA,aAAa,GAAoB;IAC7C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"deepwater-clan.js","sourceRoot":"","sources":["../../../../src/cards/impl/bg-spell/deepwater-clan.ts"],"names":[],"mappings":";;;AAAA,iEAAoD;AAEpD,qDAAwD;AACxD,0CAA0E;AAG7D,QAAA,aAAa,GAAoB;IAC7C,OAAO,EAAE,YAAgC;IACzC,eAAe,EAAE,CAAC,WAAmB,EAAE,KAAqB,EAAE,EAAE;;QAC/D,MAAM,IAAI,GAAG,CAAC,CAAC;QACf,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,IAAA,+BAAuB,EACjD,KAAK,CAAC,IAAI,EACV,CAAC,GAAG,IAAI,EACR,CAAC,GAAG,IAAI,EACR,KAAK,CAAC,SAAS,CAAC,QAAQ,EACxB,KAAK,CAAC,WAAW,CACjB,CAAC;QACF,MAAM,MAAM,GAAG,MAAA,KAAK,CAAC,MAAM,mCAAI,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC;QAC1F,IAAI,MAAM,EAAE;YACX,IAAA,mBAAW,EAAC,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;SAC5F;QACD,KAAK,MAAM,MAAM,IAAI,KAAK,CAAC,KAAK,EAAE;YACjC,IAAI,MAAM,CAAC,MAAM,IAAI,CAAC,IAAI,MAAM,CAAC,cAAc;gBAAE,SAAS;YAC1D,IAAI,IAAA,uBAAe,EAAC,MAAM,EAAE,KAAK,CAAC,IAAI,EAAE,qBAAI,CAAC,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE;gBAC1G,IAAA,mBAAW,EAAC,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;aAC5F;SACD;IACF,CAAC;CACD,CAAC","sourcesContent":["import { Race } from '@firestone-hs/reference-data';\r\nimport { CardIds } from '../../../services/card-ids';\r\nimport { modifyStats } from '../../../simulation/stats';\r\nimport { hasCorrectTribe, withTavernSpellStatBuff } from '../../../utils';\r\nimport { CastSpellInput, TavernSpellCard } from '../../card.interface';\r\n\r\nexport const DeepwaterClan: TavernSpellCard = {\r\n\tcardIds: [CardIds.DeepwaterClan_BG35_149],\r\n\tcastTavernSpell: (spellCardId: string, input: CastSpellInput) => {\r\n\t\tconst mult = 1;\r\n\t\tconst { attack, health } = withTavernSpellStatBuff(\r\n\t\t\tinput.hero,\r\n\t\t\t2 * mult,\r\n\t\t\t2 * mult,\r\n\t\t\tinput.gameState.allCards,\r\n\t\t\tinput.spellCardId,\r\n\t\t);\r\n\t\tconst target = input.target ?? input.board.find((e) => e.health > 0 && !e.definitelyDead);\r\n\t\tif (target) {\r\n\t\t\tmodifyStats(target, input.source, attack, health, input.board, input.hero, input.gameState);\r\n\t\t}\r\n\t\tfor (const entity of input.board) {\r\n\t\t\tif (entity.health <= 0 || entity.definitelyDead) continue;\r\n\t\t\tif (hasCorrectTribe(entity, input.hero, Race.MURLOC, input.gameState.anomalies, input.gameState.allCards)) {\r\n\t\t\t\tmodifyStats(entity, input.source, attack, health, input.board, input.hero, input.gameState);\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n};\r\n"]}
|
|
@@ -5,9 +5,9 @@ const reference_data_1 = require("@firestone-hs/reference-data");
|
|
|
5
5
|
const stats_1 = require("../../../simulation/stats");
|
|
6
6
|
const utils_1 = require("../../../utils");
|
|
7
7
|
exports.QueensCommand = {
|
|
8
|
-
cardIds: ["BG35_922"
|
|
8
|
+
cardIds: ["BG35_922"],
|
|
9
9
|
castTavernSpell: (spellCardId, input) => {
|
|
10
|
-
const mult =
|
|
10
|
+
const mult = 1;
|
|
11
11
|
const { attack, health } = (0, utils_1.withTavernSpellStatBuff)(input.hero, 2 * mult, 2 * mult, input.gameState.allCards, input.spellCardId);
|
|
12
12
|
for (const e of input.board) {
|
|
13
13
|
if (e.health <= 0 || e.definitelyDead) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queens-command.js","sourceRoot":"","sources":["../../../../src/cards/impl/bg-spell/queens-command.ts"],"names":[],"mappings":";;;AAAA,iEAAoD;AAEpD,qDAAwD;AACxD,0CAA0E;AAG7D,QAAA,aAAa,GAAoB;IAC7C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"queens-command.js","sourceRoot":"","sources":["../../../../src/cards/impl/bg-spell/queens-command.ts"],"names":[],"mappings":";;;AAAA,iEAAoD;AAEpD,qDAAwD;AACxD,0CAA0E;AAG7D,QAAA,aAAa,GAAoB;IAC7C,OAAO,EAAE,YAAgC;IACzC,eAAe,EAAE,CAAC,WAAmB,EAAE,KAAqB,EAAE,EAAE;QAC/D,MAAM,IAAI,GAAG,CAAC,CAAC;QACf,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,IAAA,+BAAuB,EACjD,KAAK,CAAC,IAAI,EACV,CAAC,GAAG,IAAI,EACR,CAAC,GAAG,IAAI,EACR,KAAK,CAAC,SAAS,CAAC,QAAQ,EACxB,KAAK,CAAC,WAAW,CACjB,CAAC;QACF,KAAK,MAAM,CAAC,IAAI,KAAK,CAAC,KAAK,EAAE;YAC5B,IAAI,CAAC,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,CAAC,cAAc,EAAE;gBACtC,SAAS;aACT;YACD,IAAA,mBAAW,EAAC,CAAC,EAAE,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;YACvF,IAAI,IAAA,uBAAe,EAAC,CAAC,EAAE,KAAK,CAAC,IAAI,EAAE,qBAAI,CAAC,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE;gBACnG,IAAA,mBAAW,EAAC,CAAC,EAAE,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;aACvF;SACD;IACF,CAAC;CACD,CAAC","sourcesContent":["import { Race } from '@firestone-hs/reference-data';\r\nimport { CardIds } from '../../../services/card-ids';\r\nimport { modifyStats } from '../../../simulation/stats';\r\nimport { hasCorrectTribe, withTavernSpellStatBuff } from '../../../utils';\r\nimport { CastSpellInput, TavernSpellCard } from '../../card.interface';\r\n\r\nexport const QueensCommand: TavernSpellCard = {\r\n\tcardIds: [CardIds.QueensCommand_BG35_922],\r\n\tcastTavernSpell: (spellCardId: string, input: CastSpellInput) => {\r\n\t\tconst mult = 1;\r\n\t\tconst { attack, health } = withTavernSpellStatBuff(\r\n\t\t\tinput.hero,\r\n\t\t\t2 * mult,\r\n\t\t\t2 * mult,\r\n\t\t\tinput.gameState.allCards,\r\n\t\t\tinput.spellCardId,\r\n\t\t);\r\n\t\tfor (const e of input.board) {\r\n\t\t\tif (e.health <= 0 || e.definitelyDead) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tmodifyStats(e, input.source, attack, health, input.board, input.hero, input.gameState);\r\n\t\t\tif (hasCorrectTribe(e, input.hero, Race.NAGA, input.gameState.anomalies, input.gameState.allCards)) {\r\n\t\t\t\tmodifyStats(e, input.source, attack, health, input.board, input.hero, input.gameState);\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n};\r\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shifting-tide.js","sourceRoot":"","sources":["../../../../src/cards/impl/bg-spell/shifting-tide.ts"],"names":[],"mappings":";;;AAAA,iEAAoD;AAEpD,qDAAwD;AACxD,0CAA0E;AAI1E,MAAM,yBAAyB,GAAG,CAAC,MAA6C,EAAE,KAAqB,EAAQ,EAAE;IAChH,MAAM,MAAM,GAAG,IAAA,uBAAe,EAAC,MAAM,EAAE,KAAK,CAAC,IAAI,EAAE,qBAAI,CAAC,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IACnH,MAAM,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC9B,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,IAAA,+BAAuB,
|
|
1
|
+
{"version":3,"file":"shifting-tide.js","sourceRoot":"","sources":["../../../../src/cards/impl/bg-spell/shifting-tide.ts"],"names":[],"mappings":";;;AAAA,iEAAoD;AAEpD,qDAAwD;AACxD,0CAA0E;AAI1E,MAAM,yBAAyB,GAAG,CAAC,MAA6C,EAAE,KAAqB,EAAQ,EAAE;IAChH,MAAM,MAAM,GAAG,IAAA,uBAAe,EAAC,MAAM,EAAE,KAAK,CAAC,IAAI,EAAE,qBAAI,CAAC,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IACnH,MAAM,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC9B,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,IAAA,+BAAuB,EAAC,KAAK,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,QAAQ,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;IAClH,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,CAAC,EAAE,EAAE;QAChC,IAAA,mBAAW,EAAC,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;QAC5F,IAAA,mBAAW,EAAC,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;KAC5F;AACF,CAAC,CAAC;AAEW,QAAA,YAAY,GAAoB;IAC5C,OAAO,EAAE,YAA+B;IACxC,eAAe,EAAE,CAAC,YAAoB,EAAE,KAAqB,EAAE,EAAE;;QAChE,MAAM,MAAM,GAAG,MAAA,KAAK,CAAC,MAAM,mCAAI,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC;QAC1F,IAAI,MAAM,EAAE;YACX,yBAAyB,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;SACzC;IACF,CAAC;CACD,CAAC","sourcesContent":["import { Race } from '@firestone-hs/reference-data';\r\nimport { CardIds } from '../../../services/card-ids';\r\nimport { modifyStats } from '../../../simulation/stats';\r\nimport { hasCorrectTribe, withTavernSpellStatBuff } from '../../../utils';\r\nimport { CastSpellInput, TavernSpellCard } from '../../card.interface';\r\n\r\n/** Give a minion +2/+2 twice. If it's a Naga, repeat this (two more +2/+2 applications). */\r\nconst applyShiftingTideToTarget = (target: NonNullable<CastSpellInput['target']>, input: CastSpellInput): void => {\r\n\tconst isNaga = hasCorrectTribe(target, input.hero, Race.NAGA, input.gameState.anomalies, input.gameState.allCards);\r\n\tconst rounds = isNaga ? 2 : 1;\r\n\tconst { attack, health } = withTavernSpellStatBuff(input.hero, 1, 1, input.gameState.allCards, input.spellCardId);\r\n\tfor (let r = 0; r < rounds; r++) {\r\n\t\tmodifyStats(target, input.source, attack, health, input.board, input.hero, input.gameState);\r\n\t\tmodifyStats(target, input.source, attack, health, input.board, input.hero, input.gameState);\r\n\t}\r\n};\r\n\r\nexport const ShiftingTide: TavernSpellCard = {\r\n\tcardIds: [CardIds.ShiftingTide_BG32_815],\r\n\tcastTavernSpell: (_spellCardId: string, input: CastSpellInput) => {\r\n\t\tconst target = input.target ?? input.board.find((e) => e.health > 0 && !e.definitelyDead);\r\n\t\tif (target) {\r\n\t\t\tapplyShiftingTideToTarget(target, input);\r\n\t\t}\r\n\t},\r\n};\r\n"]}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AbyssalBruiser = void 0;
|
|
4
4
|
const divine_shield_1 = require("../../../keywords/divine-shield");
|
|
5
|
+
const stats_1 = require("../../../simulation/stats");
|
|
5
6
|
exports.AbyssalBruiser = {
|
|
6
7
|
cardIds: ["BG35_921", "BG35_921_G"],
|
|
7
8
|
onSpawned: (minion, input) => {
|
|
@@ -39,10 +40,7 @@ exports.AbyssalBruiser = {
|
|
|
39
40
|
return;
|
|
40
41
|
}
|
|
41
42
|
const mult = entity.cardId === "BG35_921_G" ? 2 : 1;
|
|
42
|
-
entity.
|
|
43
|
-
entity.attack = Math.max(entity.attack, entity.maxAttack);
|
|
44
|
-
entity.health += mult;
|
|
45
|
-
entity.maxHealth = Math.max(entity.maxHealth, entity.health);
|
|
43
|
+
(0, stats_1.modifyStats)(entity, entity, mult, mult, input.board, input.hero, input.gameState);
|
|
46
44
|
},
|
|
47
45
|
};
|
|
48
46
|
//# sourceMappingURL=abyssal-bruiser.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"abyssal-bruiser.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/abyssal-bruiser.ts"],"names":[],"mappings":";;;AACA,mEAAqE;
|
|
1
|
+
{"version":3,"file":"abyssal-bruiser.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/abyssal-bruiser.ts"],"names":[],"mappings":";;;AACA,mEAAqE;AAGrE,qDAAwD;AAG3C,QAAA,cAAc,GAA4D;IACtF,OAAO,EAAE,0BAAoE;IAC7E,SAAS,EAAE,CAAC,MAAmB,EAAE,KAAmB,EAAE,EAAE;;QACvD,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,iBAAsC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACzE,MAAM,CAAC,GAAG,MAAA,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,wBAAwB,mCAAI,CAAC,CAAC;QAC9D,IAAI,KAAK,CAAC,gBAAgB,EAAE;YAC3B,MAAM,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,CAAC;YAC1B,MAAM,CAAC,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC;SACjC;QACD,IAAI,KAAK,CAAC,gBAAgB,EAAE;YAC3B,MAAM,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,CAAC;YAC1B,MAAM,CAAC,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;SAC7D;QACD,MAAM,SAAS,GACd,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,KAAK,KAAK,CAAC,IAAI;YACrD,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC,QAAQ,CAAC,MAAM;YAC3C,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC;QAC5C,IAAA,kCAAkB,EAAC,MAAM,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IACvF,CAAC;IACD,WAAW,EAAE,CAAC,MAAmB,EAAE,KAAqB,EAAE,EAAE;;QAC3D,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,iBAAsC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACzE,MAAM,CAAC,GAAG,MAAA,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,wBAAwB,mCAAI,CAAC,CAAC;QAC9D,IAAI,KAAK,CAAC,gBAAgB,EAAE;YAC3B,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,CAAC,MAAM,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;YACtD,MAAM,CAAC,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;SAC7D;QACD,IAAI,KAAK,CAAC,gBAAgB,EAAE;YAC3B,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,CAAC,MAAM,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;YACtD,MAAM,CAAC,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;SAC7D;IACF,CAAC;IACD,iBAAiB,EAAE,CAAC,MAAmB,EAAE,KAAqB,EAAE,EAAE;QACjE,IAAI,KAAK,CAAC,MAAM,KAAK,KAAK,CAAC,IAAI,EAAE;YAChC,OAAO;SACP;QAED,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,iBAAsC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACzE,IAAA,mBAAW,EAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IACnF,CAAC;CACD,CAAC","sourcesContent":["import { BoardEntity } from '../../../board-entity';\r\nimport { updateDivineShield } from '../../../keywords/divine-shield';\r\nimport { CardIds } from '../../../services/card-ids';\r\nimport { OnDespawnInput, OnSpawnInput } from '../../../simulation/add-minion-to-board';\r\nimport { modifyStats } from '../../../simulation/stats';\r\nimport { CastSpellInput, OnDespawnedCard, OnSpawnedCard, OnTavernSpellCastCard } from '../../card.interface';\r\n\r\nexport const AbyssalBruiser: OnDespawnedCard & OnSpawnedCard & OnTavernSpellCastCard = {\r\n\tcardIds: [CardIds.AbyssalBruiser_BG35_921, CardIds.AbyssalBruiser_BG35_921_G],\r\n\tonSpawned: (minion: BoardEntity, input: OnSpawnInput) => {\r\n\t\tconst mult = minion.cardId === CardIds.AbyssalBruiser_BG35_921_G ? 2 : 1;\r\n\t\tconst n = input.hero.globalInfo.TavernSpellsCastThisGame ?? 0;\r\n\t\tif (input.applyAttackAuras) {\r\n\t\t\tminion.attack += n * mult;\r\n\t\t\tminion.maxAttack = minion.attack;\r\n\t\t}\r\n\t\tif (input.applyHealthAuras) {\r\n\t\t\tminion.health += n * mult;\r\n\t\t\tminion.maxHealth = Math.max(minion.maxHealth, minion.health);\r\n\t\t}\r\n\t\tconst otherHero =\r\n\t\t\tinput.gameState.gameState.player.player === input.hero\r\n\t\t\t\t? input.gameState.gameState.opponent.player\r\n\t\t\t\t: input.gameState.gameState.player.player;\r\n\t\tupdateDivineShield(minion, input.board, input.hero, otherHero, true, input.gameState);\r\n\t},\r\n\tonDespawned: (minion: BoardEntity, input: OnDespawnInput) => {\r\n\t\tconst mult = minion.cardId === CardIds.AbyssalBruiser_BG35_921_G ? 2 : 1;\r\n\t\tconst n = input.hero.globalInfo.TavernSpellsCastThisGame ?? 0;\r\n\t\tif (input.applyAttackAuras) {\r\n\t\t\tminion.attack = Math.max(0, minion.attack - n * mult);\r\n\t\t\tminion.maxAttack = Math.max(minion.maxAttack, minion.attack);\r\n\t\t}\r\n\t\tif (input.applyHealthAuras) {\r\n\t\t\tminion.health = Math.max(1, minion.health - n * mult);\r\n\t\t\tminion.maxHealth = Math.max(minion.maxHealth, minion.health);\r\n\t\t}\r\n\t},\r\n\tonTavernSpellCast: (entity: BoardEntity, input: CastSpellInput) => {\r\n\t\tif (input.source !== input.hero) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tconst mult = entity.cardId === CardIds.AbyssalBruiser_BG35_921_G ? 2 : 1;\r\n\t\tmodifyStats(entity, entity, mult, mult, input.board, input.hero, input.gameState);\r\n\t},\r\n};\r\n"]}
|
|
@@ -15,9 +15,7 @@ exports.BristlebackBully = {
|
|
|
15
15
|
},
|
|
16
16
|
deathrattleSpawn: (minion, input) => {
|
|
17
17
|
const mult = minion.cardId === "BG35_432_G" ? 2 : 1;
|
|
18
|
-
const gem =
|
|
19
|
-
? "BG20_GEM_Taunt_G"
|
|
20
|
-
: "BG20_GEM_Taunt";
|
|
18
|
+
const gem = "BG20_GEM_Taunt";
|
|
21
19
|
(0, cards_in_hand_1.addCardsInHand)(input.boardWithDeadEntityHero, input.boardWithDeadEntity, Array(mult).fill(gem), input.gameState);
|
|
22
20
|
return [];
|
|
23
21
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bristleback-bully.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/bristleback-bully.ts"],"names":[],"mappings":";;;AACA,mDAAsD;AAGtD,qEAAmE;AAItD,QAAA,gBAAgB,GAAyC;IACrE,OAAO,EAAE,0BAAwE;IACjF,SAAS,EAAE,CAAC,MAAmB,EAAE,KAAmB,EAAE,EAAE;QACvD,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE;YAClB,MAAM,SAAS,GACd,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,KAAK,KAAK,CAAC,IAAI;gBACrD,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC,QAAQ,CAAC,MAAM;gBAC3C,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC;YAC5C,IAAA,mBAAW,EAAC,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;SAC/E;IACF,CAAC;IACD,gBAAgB,EAAE,CAAC,MAAmB,EAAE,KAAgC,EAA0B,EAAE;QACnG,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,iBAAwC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC3E,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"bristleback-bully.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/bristleback-bully.ts"],"names":[],"mappings":";;;AACA,mDAAsD;AAGtD,qEAAmE;AAItD,QAAA,gBAAgB,GAAyC;IACrE,OAAO,EAAE,0BAAwE;IACjF,SAAS,EAAE,CAAC,MAAmB,EAAE,KAAmB,EAAE,EAAE;QACvD,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE;YAClB,MAAM,SAAS,GACd,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,KAAK,KAAK,CAAC,IAAI;gBACrD,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC,QAAQ,CAAC,MAAM;gBAC3C,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC;YAC5C,IAAA,mBAAW,EAAC,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;SAC/E;IACF,CAAC;IACD,gBAAgB,EAAE,CAAC,MAAmB,EAAE,KAAgC,EAA0B,EAAE;QACnG,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,iBAAwC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC3E,MAAM,GAAG,mBAAuC,CAAC;QACjD,IAAA,8BAAc,EACb,KAAK,CAAC,uBAAuB,EAC7B,KAAK,CAAC,mBAAmB,EACzB,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EACrB,KAAK,CAAC,SAAS,CACf,CAAC;QACF,OAAO,EAAE,CAAC;IACX,CAAC;CACD,CAAC","sourcesContent":["import { BoardEntity } from '../../../board-entity';\r\nimport { updateTaunt } from '../../../keywords/taunt';\r\nimport { CardIds } from '../../../services/card-ids';\r\nimport { OnSpawnInput } from '../../../simulation/add-minion-to-board';\r\nimport { addCardsInHand } from '../../../simulation/cards-in-hand';\r\nimport { DeathrattleTriggeredInput } from '../../../simulation/deathrattle-on-trigger';\r\nimport { DeathrattleSpawnCard, OnSpawnedCard } from '../../card.interface';\r\n\r\nexport const BristlebackBully: DeathrattleSpawnCard & OnSpawnedCard = {\r\n\tcardIds: [CardIds.BristlebackBully_BG35_432, CardIds.BristlebackBully_BG35_432_G],\r\n\tonSpawned: (minion: BoardEntity, input: OnSpawnInput) => {\r\n\t\tif (!minion.taunt) {\r\n\t\t\tconst otherHero =\r\n\t\t\t\tinput.gameState.gameState.player.player === input.hero\r\n\t\t\t\t\t? input.gameState.gameState.opponent.player\r\n\t\t\t\t\t: input.gameState.gameState.player.player;\r\n\t\t\tupdateTaunt(minion, true, input.board, input.hero, otherHero, input.gameState);\r\n\t\t}\r\n\t},\r\n\tdeathrattleSpawn: (minion: BoardEntity, input: DeathrattleTriggeredInput): readonly BoardEntity[] => {\r\n\t\tconst mult = minion.cardId === CardIds.BristlebackBully_BG35_432_G ? 2 : 1;\r\n\t\tconst gem = CardIds.BloodGemToken_BG20_GEM_Taunt;\r\n\t\taddCardsInHand(\r\n\t\t\tinput.boardWithDeadEntityHero,\r\n\t\t\tinput.boardWithDeadEntity,\r\n\t\t\tArray(mult).fill(gem),\r\n\t\t\tinput.gameState,\r\n\t\t);\r\n\t\treturn [];\r\n\t},\r\n};\r\n"]}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.chromadrakeCardIds = void 0;
|
|
4
4
|
exports.chromadrakeCardIds = [
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
5
|
+
"BG34_634t",
|
|
6
|
+
"BG34_635t",
|
|
7
|
+
"BG34_636t",
|
|
8
|
+
"BG34_637t",
|
|
9
|
+
"BG34_638t",
|
|
10
10
|
];
|
|
11
11
|
//# sourceMappingURL=chromadrake-pool.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chromadrake-pool.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/chromadrake-pool.ts"],"names":[],"mappings":";;;AAGa,QAAA,kBAAkB,GAAsB;;;;;;CAMpD,CAAC","sourcesContent":["import { CardIds } from '../../../services/card-ids';\r\n\r\n/** Random Chromadrake outcomes for Incubation Researcher / Draconic Warden. */\r\nexport const chromadrakeCardIds: readonly string[] = [\r\n\tCardIds.
|
|
1
|
+
{"version":3,"file":"chromadrake-pool.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/chromadrake-pool.ts"],"names":[],"mappings":";;;AAGa,QAAA,kBAAkB,GAAsB;;;;;;CAMpD,CAAC","sourcesContent":["import { CardIds } from '../../../services/card-ids';\r\n\r\n/** Random Chromadrake outcomes for Incubation Researcher / Draconic Warden. */\r\nexport const chromadrakeCardIds: readonly string[] = [\r\n\tCardIds.BlueChromadrakeToken_BG34_634t,\r\n\tCardIds.BlackChromadrakeToken_BG34_635t,\r\n\tCardIds.GreenChromadrakeToken_BG34_636t,\r\n\tCardIds.BronzeChromadrakeToken_BG34_637t,\r\n\tCardIds.RedChromadrakeToken_BG34_638t,\r\n];\r\n"]}
|
|
@@ -15,8 +15,10 @@ exports.ClunkerJunker = {
|
|
|
15
15
|
const numberOfMagnetizes = minion.cardId === "BG29_503" ? 1 : 2;
|
|
16
16
|
for (let i = 0; i < numberOfMagnetizes; i++) {
|
|
17
17
|
const minionToMagnetize = input.gameState.cardsData.getRandomMechToMagnetize((_a = input.hero.tavernTier) !== null && _a !== void 0 ? _a : 1);
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
if (minionToMagnetize) {
|
|
19
|
+
input.gameState.spectator.registerPowerTarget(minion, junkerTarget, input.board, null, null);
|
|
20
|
+
(0, magnetize_1.magnetizeToTarget)([junkerTarget], minion, [minionToMagnetize], input.board, input.hero, input.otherBoard, input.otherHero, input.gameState);
|
|
21
|
+
}
|
|
20
22
|
}
|
|
21
23
|
}
|
|
22
24
|
return true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clunker-junker.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/clunker-junker.ts"],"names":[],"mappings":";;;AAAA,iEAAoD;AAGpD,mDAAqD;AAErD,6DAAkE;AAClE,0CAAiD;AAGpC,QAAA,aAAa,GAAkB;IAC3C,OAAO,EAAE,0BAAkE;IAC3E,SAAS,EAAE,CAAC,MAAmB,EAAE,KAAqB,EAAE,EAAE;;QACzD,MAAM,cAAc,GAAG,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAC/C,IAAA,uBAAe,EAAC,CAAC,EAAE,KAAK,CAAC,IAAI,EAAE,qBAAI,CAAC,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,QAAQ,CAAC,CAC9F,CAAC;QACF,MAAM,YAAY,GAAG,IAAA,kBAAU,EAAC,cAAc,CAAC,CAAC;QAChD,IAAI,YAAY,EAAE;YACjB,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,eAAmC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YACpF,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,kBAAkB,EAAE,CAAC,EAAE,EAAE;gBAC5C,MAAM,iBAAiB,GAAG,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC,wBAAwB,CAC3E,MAAA,KAAK,CAAC,IAAI,CAAC,UAAU,mCAAI,CAAC,CAC1B,CAAC;gBACF,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC,mBAAmB,CAAC,MAAM,EAAE,YAAY,EAAE,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"clunker-junker.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/clunker-junker.ts"],"names":[],"mappings":";;;AAAA,iEAAoD;AAGpD,mDAAqD;AAErD,6DAAkE;AAClE,0CAAiD;AAGpC,QAAA,aAAa,GAAkB;IAC3C,OAAO,EAAE,0BAAkE;IAC3E,SAAS,EAAE,CAAC,MAAmB,EAAE,KAAqB,EAAE,EAAE;;QACzD,MAAM,cAAc,GAAG,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAC/C,IAAA,uBAAe,EAAC,CAAC,EAAE,KAAK,CAAC,IAAI,EAAE,qBAAI,CAAC,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,QAAQ,CAAC,CAC9F,CAAC;QACF,MAAM,YAAY,GAAG,IAAA,kBAAU,EAAC,cAAc,CAAC,CAAC;QAChD,IAAI,YAAY,EAAE;YACjB,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,eAAmC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YACpF,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,kBAAkB,EAAE,CAAC,EAAE,EAAE;gBAC5C,MAAM,iBAAiB,GAAG,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC,wBAAwB,CAC3E,MAAA,KAAK,CAAC,IAAI,CAAC,UAAU,mCAAI,CAAC,CAC1B,CAAC;gBACF,IAAI,iBAAiB,EAAE;oBACtB,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC,mBAAmB,CAAC,MAAM,EAAE,YAAY,EAAE,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;oBAC7F,IAAA,6BAAiB,EAChB,CAAC,YAAY,CAAC,EACd,MAAM,EACN,CAAC,iBAAiB,CAAC,EACnB,KAAK,CAAC,KAAK,EACX,KAAK,CAAC,IAAI,EACV,KAAK,CAAC,UAAU,EAChB,KAAK,CAAC,SAAS,EACf,KAAK,CAAC,SAAS,CACf,CAAC;iBACF;aACD;SACD;QACD,OAAO,IAAI,CAAC;IACb,CAAC;CACD,CAAC","sourcesContent":["import { Race } from '@firestone-hs/reference-data';\r\nimport { BoardEntity } from '../../../board-entity';\r\nimport { CardIds } from '../../../services/card-ids';\r\nimport { pickRandom } from '../../../services/utils';\r\nimport { BattlecryInput } from '../../../simulation/battlecries';\r\nimport { magnetizeToTarget } from '../../../simulation/magnetize';\r\nimport { hasCorrectTribe } from '../../../utils';\r\nimport { BattlecryCard } from '../../card.interface';\r\n\r\nexport const ClunkerJunker: BattlecryCard = {\r\n\tcardIds: [CardIds.ClunkerJunker_BG29_503, CardIds.ClunkerJunker_BG29_503_G],\r\n\tbattlecry: (minion: BoardEntity, input: BattlecryInput) => {\r\n\t\tconst boardWithMechs = input.board.filter((e) =>\r\n\t\t\thasCorrectTribe(e, input.hero, Race.MECH, input.gameState.anomalies, input.gameState.allCards),\r\n\t\t);\r\n\t\tconst junkerTarget = pickRandom(boardWithMechs);\r\n\t\tif (junkerTarget) {\r\n\t\t\tconst numberOfMagnetizes = minion.cardId === CardIds.ClunkerJunker_BG29_503 ? 1 : 2;\r\n\t\t\tfor (let i = 0; i < numberOfMagnetizes; i++) {\r\n\t\t\t\tconst minionToMagnetize = input.gameState.cardsData.getRandomMechToMagnetize(\r\n\t\t\t\t\tinput.hero.tavernTier ?? 1,\r\n\t\t\t\t);\r\n\t\t\t\tif (minionToMagnetize) {\r\n\t\t\t\t\tinput.gameState.spectator.registerPowerTarget(minion, junkerTarget, input.board, null, null);\r\n\t\t\t\t\tmagnetizeToTarget(\r\n\t\t\t\t\t\t[junkerTarget],\r\n\t\t\t\t\t\tminion,\r\n\t\t\t\t\t\t[minionToMagnetize],\r\n\t\t\t\t\t\tinput.board,\r\n\t\t\t\t\t\tinput.hero,\r\n\t\t\t\t\t\tinput.otherBoard,\r\n\t\t\t\t\t\tinput.otherHero,\r\n\t\t\t\t\t\tinput.gameState,\r\n\t\t\t\t\t);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t},\r\n};\r\n"]}
|
|
@@ -3,11 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.DeadSeaRavager = void 0;
|
|
4
4
|
const utils_1 = require("../../../services/utils");
|
|
5
5
|
const stats_1 = require("../../../simulation/stats");
|
|
6
|
-
const temp_card_ids_1 = require("../../../temp-card-ids");
|
|
7
6
|
exports.DeadSeaRavager = {
|
|
8
|
-
cardIds: [
|
|
7
|
+
cardIds: ["BG34_765", "BG34_765_G"],
|
|
9
8
|
rally: (minion, input) => {
|
|
10
|
-
const mult = minion.cardId ===
|
|
9
|
+
const mult = minion.cardId === "BG34_765_G" ? 2 : 1;
|
|
11
10
|
const candidates = input.attackingBoard.filter((e) => e != minion);
|
|
12
11
|
const targets = (0, utils_1.pickMultipleRandomAlive)(candidates, 3);
|
|
13
12
|
for (const target of targets) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dead-sea-ravager.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/dead-sea-ravager.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"dead-sea-ravager.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/dead-sea-ravager.ts"],"names":[],"mappings":";;;AAEA,mDAAkE;AAElE,qDAAwD;AAG3C,QAAA,cAAc,GAAc;IACxC,OAAO,EAAE,0BAAoE;IAC7E,KAAK,EAAE,CAAC,MAAmB,EAAE,KAAoB,EAAE,EAAE;QACpD,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,iBAAsC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACzE,MAAM,UAAU,GAAG,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,MAAM,CAAC,CAAC;QACnE,MAAM,OAAO,GAAG,IAAA,+BAAuB,EAAC,UAAU,EAAE,CAAC,CAAC,CAAC;QACvD,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE;YAC7B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,CAAC,EAAE,EAAE;gBAC9B,IAAA,mBAAW,EACV,MAAM,EACN,MAAM,EACN,MAAM,CAAC,MAAM,EACb,CAAC,EACD,KAAK,CAAC,cAAc,EACpB,KAAK,CAAC,aAAa,EACnB,KAAK,CAAC,SAAS,CACf,CAAC;aACF;SACD;QACD,OAAO,EAAE,iBAAiB,EAAE,CAAC,EAAE,iBAAiB,EAAE,CAAC,EAAE,CAAC;IACvD,CAAC;CACD,CAAC","sourcesContent":["import { BoardEntity } from '../../../board-entity';\r\nimport { CardIds } from '../../../services/card-ids';\r\nimport { pickMultipleRandomAlive } from '../../../services/utils';\r\nimport { OnAttackInput } from '../../../simulation/on-attack';\r\nimport { modifyStats } from '../../../simulation/stats';\r\nimport { RallyCard } from '../../card.interface';\r\n\r\nexport const DeadSeaRavager: RallyCard = {\r\n\tcardIds: [CardIds.DeadSeaRavager_BG34_765, CardIds.DeadSeaRavager_BG34_765_G],\r\n\trally: (minion: BoardEntity, input: OnAttackInput) => {\r\n\t\tconst mult = minion.cardId === CardIds.DeadSeaRavager_BG34_765_G ? 2 : 1;\r\n\t\tconst candidates = input.attackingBoard.filter((e) => e != minion);\r\n\t\tconst targets = pickMultipleRandomAlive(candidates, 3);\r\n\t\tfor (const target of targets) {\r\n\t\t\tfor (let i = 0; i < mult; i++) {\r\n\t\t\t\tmodifyStats(\r\n\t\t\t\t\ttarget,\r\n\t\t\t\t\tminion,\r\n\t\t\t\t\tminion.attack,\r\n\t\t\t\t\t0,\r\n\t\t\t\t\tinput.attackingBoard,\r\n\t\t\t\t\tinput.attackingHero,\r\n\t\t\t\t\tinput.gameState,\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn { dmgDoneByAttacker: 0, dmgDoneByDefender: 0 };\r\n\t},\r\n};\r\n"]}
|
|
@@ -6,17 +6,13 @@ exports.DeepwaterChieftain = {
|
|
|
6
6
|
cardIds: ["BG35_143", "BG35_143_G"],
|
|
7
7
|
battlecry: (minion, input) => {
|
|
8
8
|
const mult = minion.cardId === "BG35_143_G" ? 2 : 1;
|
|
9
|
-
const spell =
|
|
10
|
-
? "BG35_149_G"
|
|
11
|
-
: "BG35_149";
|
|
9
|
+
const spell = "BG35_149";
|
|
12
10
|
(0, cards_in_hand_1.addCardsInHand)(input.hero, input.board, Array(mult).fill(spell), input.gameState);
|
|
13
11
|
return true;
|
|
14
12
|
},
|
|
15
13
|
deathrattleSpawn: (minion, input) => {
|
|
16
14
|
const mult = minion.cardId === "BG35_143_G" ? 2 : 1;
|
|
17
|
-
const spell =
|
|
18
|
-
? "BG35_149_G"
|
|
19
|
-
: "BG35_149";
|
|
15
|
+
const spell = "BG35_149";
|
|
20
16
|
(0, cards_in_hand_1.addCardsInHand)(input.boardWithDeadEntityHero, input.boardWithDeadEntity, Array(mult).fill(spell), input.gameState);
|
|
21
17
|
return [];
|
|
22
18
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deepwater-chieftain.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/deepwater-chieftain.ts"],"names":[],"mappings":";;;AAGA,qEAAmE;AAItD,QAAA,kBAAkB,GAAyC;IACvE,OAAO,EAAE,0BAA4E;IACrF,SAAS,EAAE,CAAC,MAAmB,EAAE,KAAqB,EAAW,EAAE;QAClE,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,iBAA0C,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC7E,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"deepwater-chieftain.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/deepwater-chieftain.ts"],"names":[],"mappings":";;;AAGA,qEAAmE;AAItD,QAAA,kBAAkB,GAAyC;IACvE,OAAO,EAAE,0BAA4E;IACrF,SAAS,EAAE,CAAC,MAAmB,EAAE,KAAqB,EAAW,EAAE;QAClE,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,iBAA0C,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC7E,MAAM,KAAK,aAAiC,CAAC;QAC7C,IAAA,8BAAc,EAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;QAClF,OAAO,IAAI,CAAC;IACb,CAAC;IACD,gBAAgB,EAAE,CAAC,MAAmB,EAAE,KAAgC,EAA0B,EAAE;QACnG,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,iBAA0C,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC7E,MAAM,KAAK,aAAiC,CAAC;QAC7C,IAAA,8BAAc,EACb,KAAK,CAAC,uBAAuB,EAC7B,KAAK,CAAC,mBAAmB,EACzB,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACvB,KAAK,CAAC,SAAS,CACf,CAAC;QACF,OAAO,EAAE,CAAC;IACX,CAAC;CACD,CAAC","sourcesContent":["import { BoardEntity } from '../../../board-entity';\r\nimport { CardIds } from '../../../services/card-ids';\r\nimport { BattlecryInput } from '../../../simulation/battlecries';\r\nimport { addCardsInHand } from '../../../simulation/cards-in-hand';\r\nimport { DeathrattleTriggeredInput } from '../../../simulation/deathrattle-on-trigger';\r\nimport { BattlecryCard, DeathrattleSpawnCard } from '../../card.interface';\r\n\r\nexport const DeepwaterChieftain: BattlecryCard & DeathrattleSpawnCard = {\r\n\tcardIds: [CardIds.DeepwaterChieftain_BG35_143, CardIds.DeepwaterChieftain_BG35_143_G],\r\n\tbattlecry: (minion: BoardEntity, input: BattlecryInput): boolean => {\r\n\t\tconst mult = minion.cardId === CardIds.DeepwaterChieftain_BG35_143_G ? 2 : 1;\r\n\t\tconst spell = CardIds.DeepwaterClan_BG35_149;\r\n\t\taddCardsInHand(input.hero, input.board, Array(mult).fill(spell), input.gameState);\r\n\t\treturn true;\r\n\t},\r\n\tdeathrattleSpawn: (minion: BoardEntity, input: DeathrattleTriggeredInput): readonly BoardEntity[] => {\r\n\t\tconst mult = minion.cardId === CardIds.DeepwaterChieftain_BG35_143_G ? 2 : 1;\r\n\t\tconst spell = CardIds.DeepwaterClan_BG35_149;\r\n\t\taddCardsInHand(\r\n\t\t\tinput.boardWithDeadEntityHero,\r\n\t\t\tinput.boardWithDeadEntity,\r\n\t\t\tArray(mult).fill(spell),\r\n\t\t\tinput.gameState,\r\n\t\t);\r\n\t\treturn [];\r\n\t},\r\n};\r\n"]}
|
|
@@ -6,9 +6,7 @@ exports.FirelandsFugitive = {
|
|
|
6
6
|
cardIds: ["BG35_882", "BG35_882_G"],
|
|
7
7
|
battlecry: (minion, input) => {
|
|
8
8
|
const mult = minion.cardId === "BG35_882_G" ? 2 : 1;
|
|
9
|
-
const spell =
|
|
10
|
-
? "BG35_910_G"
|
|
11
|
-
: "BG35_910";
|
|
9
|
+
const spell = "BG35_910";
|
|
12
10
|
(0, cards_in_hand_1.addCardsInHand)(input.hero, input.board, Array(mult).fill(spell), input.gameState);
|
|
13
11
|
return true;
|
|
14
12
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"firelands-fugitive.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/firelands-fugitive.ts"],"names":[],"mappings":";;;AAGA,qEAAmE;AAGtD,QAAA,iBAAiB,GAAkB;IAC/C,OAAO,EAAE,0BAA0E;IACnF,SAAS,EAAE,CAAC,MAAmB,EAAE,KAAqB,EAAW,EAAE;QAClE,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,iBAAyC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC5E,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"firelands-fugitive.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/firelands-fugitive.ts"],"names":[],"mappings":";;;AAGA,qEAAmE;AAGtD,QAAA,iBAAiB,GAAkB;IAC/C,OAAO,EAAE,0BAA0E;IACnF,SAAS,EAAE,CAAC,MAAmB,EAAE,KAAqB,EAAW,EAAE;QAClE,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,iBAAyC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC5E,MAAM,KAAK,aAAiC,CAAC;QAC7C,IAAA,8BAAc,EAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;QAClF,OAAO,IAAI,CAAC;IACb,CAAC;CACD,CAAC","sourcesContent":["import { BoardEntity } from '../../../board-entity';\r\nimport { CardIds } from '../../../services/card-ids';\r\nimport { BattlecryInput } from '../../../simulation/battlecries';\r\nimport { addCardsInHand } from '../../../simulation/cards-in-hand';\r\nimport { BattlecryCard } from '../../card.interface';\r\n\r\nexport const FirelandsFugitive: BattlecryCard = {\r\n\tcardIds: [CardIds.FirelandsFugitive_BG35_882, CardIds.FirelandsFugitive_BG35_882_G],\r\n\tbattlecry: (minion: BoardEntity, input: BattlecryInput): boolean => {\r\n\t\tconst mult = minion.cardId === CardIds.FirelandsFugitive_BG35_882_G ? 2 : 1;\r\n\t\tconst spell = CardIds.Conflagration_BG35_910;\r\n\t\taddCardsInHand(input.hero, input.board, Array(mult).fill(spell), input.gameState);\r\n\t\treturn true;\r\n\t},\r\n};\r\n"]}
|
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.IngeniousInventor = void 0;
|
|
4
4
|
const global_info_helpers_1 = require("../../../simulation/global-info-helpers");
|
|
5
|
-
const temp_card_ids_1 = require("../../../temp-card-ids");
|
|
6
5
|
exports.IngeniousInventor = {
|
|
7
|
-
cardIds: [
|
|
6
|
+
cardIds: ["BG35_890", "BG35_890_G"],
|
|
8
7
|
deathrattleSpawn: (minion, input) => {
|
|
9
|
-
const mult = minion.cardId ===
|
|
8
|
+
const mult = minion.cardId === "BG35_890_G" ? 2 : 1;
|
|
10
9
|
const atkBuff = 2 * mult * (1 + input.boardWithDeadEntityHero.globalInfo.MagnetizedThisGame);
|
|
11
10
|
(0, global_info_helpers_1.increaseMechAttackBonus)(minion, input.boardWithDeadEntity, input.boardWithDeadEntityHero, atkBuff, input.gameState);
|
|
12
11
|
return [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ingenious-inventor.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/ingenious-inventor.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"ingenious-inventor.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/ingenious-inventor.ts"],"names":[],"mappings":";;;AAGA,iFAAkF;AAGrE,QAAA,iBAAiB,GAAyB;IACtD,OAAO,EAAE,0BAA0E;IACnF,gBAAgB,EAAE,CAAC,MAAmB,EAAE,KAAgC,EAAE,EAAE;QAC3E,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,iBAAyC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC5E,MAAM,OAAO,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC,uBAAuB,CAAC,UAAU,CAAC,kBAAkB,CAAC,CAAC;QAC7F,IAAA,6CAAuB,EACtB,MAAM,EACN,KAAK,CAAC,mBAAmB,EACzB,KAAK,CAAC,uBAAuB,EAC7B,OAAO,EACP,KAAK,CAAC,SAAS,CACf,CAAC;QACF,OAAO,EAAE,CAAC;IACX,CAAC;CACD,CAAC","sourcesContent":["import { BoardEntity } from '../../../board-entity';\r\nimport { CardIds } from '../../../services/card-ids';\r\nimport { DeathrattleTriggeredInput } from '../../../simulation/deathrattle-on-trigger';\r\nimport { increaseMechAttackBonus } from '../../../simulation/global-info-helpers';\r\nimport { DeathrattleSpawnCard } from '../../card.interface';\r\n\r\nexport const IngeniousInventor: DeathrattleSpawnCard = {\r\n\tcardIds: [CardIds.IngeniousInventor_BG35_890, CardIds.IngeniousInventor_BG35_890_G],\r\n\tdeathrattleSpawn: (minion: BoardEntity, input: DeathrattleTriggeredInput) => {\r\n\t\tconst mult = minion.cardId === CardIds.IngeniousInventor_BG35_890_G ? 2 : 1;\r\n\t\tconst atkBuff = 2 * mult * (1 + input.boardWithDeadEntityHero.globalInfo.MagnetizedThisGame);\r\n\t\tincreaseMechAttackBonus(\r\n\t\t\tminion,\r\n\t\t\tinput.boardWithDeadEntity,\r\n\t\t\tinput.boardWithDeadEntityHero,\r\n\t\t\tatkBuff,\r\n\t\t\tinput.gameState,\r\n\t\t);\r\n\t\treturn [];\r\n\t},\r\n};\r\n"]}
|
|
@@ -6,17 +6,13 @@ exports.LeylineSurfacer = {
|
|
|
6
6
|
cardIds: ["BG35_881", "BG35_881_G"],
|
|
7
7
|
battlecry: (minion, input) => {
|
|
8
8
|
const mult = minion.cardId === "BG35_881_G" ? 2 : 1;
|
|
9
|
-
const spell =
|
|
10
|
-
? "BG35_911_G"
|
|
11
|
-
: "BG35_911";
|
|
9
|
+
const spell = "BG35_911";
|
|
12
10
|
(0, cards_in_hand_1.addCardsInHand)(input.hero, input.board, Array(mult).fill(spell), input.gameState);
|
|
13
11
|
return true;
|
|
14
12
|
},
|
|
15
13
|
deathrattleSpawn: (minion, input) => {
|
|
16
14
|
const mult = minion.cardId === "BG35_881_G" ? 2 : 1;
|
|
17
|
-
const spell =
|
|
18
|
-
? "BG35_911_G"
|
|
19
|
-
: "BG35_911";
|
|
15
|
+
const spell = "BG35_911";
|
|
20
16
|
(0, cards_in_hand_1.addCardsInHand)(input.boardWithDeadEntityHero, input.boardWithDeadEntity, Array(mult).fill(spell), input.gameState);
|
|
21
17
|
return [];
|
|
22
18
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leyline-surfacer.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/leyline-surfacer.ts"],"names":[],"mappings":";;;AAGA,qEAAmE;AAItD,QAAA,eAAe,GAAyC;IACpE,OAAO,EAAE,0BAAsE;IAC/E,SAAS,EAAE,CAAC,MAAmB,EAAE,KAAqB,EAAW,EAAE;QAClE,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,iBAAuC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC1E,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"leyline-surfacer.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/leyline-surfacer.ts"],"names":[],"mappings":";;;AAGA,qEAAmE;AAItD,QAAA,eAAe,GAAyC;IACpE,OAAO,EAAE,0BAAsE;IAC/E,SAAS,EAAE,CAAC,MAAmB,EAAE,KAAqB,EAAW,EAAE;QAClE,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,iBAAuC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC1E,MAAM,KAAK,aAAoC,CAAC;QAChD,IAAA,8BAAc,EAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;QAClF,OAAO,IAAI,CAAC;IACb,CAAC;IACD,gBAAgB,EAAE,CAAC,MAAmB,EAAE,KAAgC,EAA0B,EAAE;QACnG,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,iBAAuC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC1E,MAAM,KAAK,aAAoC,CAAC;QAChD,IAAA,8BAAc,EACb,KAAK,CAAC,uBAAuB,EAC7B,KAAK,CAAC,mBAAmB,EACzB,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACvB,KAAK,CAAC,SAAS,CACf,CAAC;QACF,OAAO,EAAE,CAAC;IACX,CAAC;CACD,CAAC","sourcesContent":["import { BoardEntity } from '../../../board-entity';\r\nimport { CardIds } from '../../../services/card-ids';\r\nimport { BattlecryInput } from '../../../simulation/battlecries';\r\nimport { addCardsInHand } from '../../../simulation/cards-in-hand';\r\nimport { DeathrattleTriggeredInput } from '../../../simulation/deathrattle-on-trigger';\r\nimport { BattlecryCard, DeathrattleSpawnCard } from '../../card.interface';\r\n\r\nexport const LeylineSurfacer: BattlecryCard & DeathrattleSpawnCard = {\r\n\tcardIds: [CardIds.LeylineSurfacer_BG35_881, CardIds.LeylineSurfacer_BG35_881_G],\r\n\tbattlecry: (minion: BoardEntity, input: BattlecryInput): boolean => {\r\n\t\tconst mult = minion.cardId === CardIds.LeylineSurfacer_BG35_881_G ? 2 : 1;\r\n\t\tconst spell = CardIds.ArcaneAbsorption_BG35_911;\r\n\t\taddCardsInHand(input.hero, input.board, Array(mult).fill(spell), input.gameState);\r\n\t\treturn true;\r\n\t},\r\n\tdeathrattleSpawn: (minion: BoardEntity, input: DeathrattleTriggeredInput): readonly BoardEntity[] => {\r\n\t\tconst mult = minion.cardId === CardIds.LeylineSurfacer_BG35_881_G ? 2 : 1;\r\n\t\tconst spell = CardIds.ArcaneAbsorption_BG35_911;\r\n\t\taddCardsInHand(\r\n\t\t\tinput.boardWithDeadEntityHero,\r\n\t\t\tinput.boardWithDeadEntity,\r\n\t\t\tArray(mult).fill(spell),\r\n\t\t\tinput.gameState,\r\n\t\t);\r\n\t\treturn [];\r\n\t},\r\n};\r\n"]}
|
|
@@ -14,7 +14,7 @@ exports.Mummifier = {
|
|
|
14
14
|
.filter((e) => e.cardId !== "BG28_309" && e.cardId !== "BG28_309_G")
|
|
15
15
|
.filter((e) => !e.reborn)
|
|
16
16
|
.filter((e) => (0, utils_2.hasCorrectTribe)(e, input.boardWithDeadEntityHero, reference_data_1.Race.UNDEAD, input.gameState.anomalies, input.gameState.allCards));
|
|
17
|
-
const target = (0, utils_1.pickRandom)(targets);
|
|
17
|
+
const target = (0, utils_1.pickRandom)(targets, minion);
|
|
18
18
|
if (target) {
|
|
19
19
|
(0, reborn_1.updateReborn)(target, true, input.boardWithDeadEntity, input.boardWithDeadEntityHero, input.otherBoardHero, input.gameState);
|
|
20
20
|
input.gameState.spectator.registerPowerTarget(minion, target, input.boardWithDeadEntity, input.boardWithDeadEntityHero, input.otherBoardHero);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mummifier.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/mummifier.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"mummifier.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/mummifier.ts"],"names":[],"mappings":";;;AAAA,iEAAoD;AAEpD,qDAAwD;AAExD,mDAAqD;AAErD,0CAAiD;AAGpC,QAAA,SAAS,GAAyB;IAC9C,OAAO,EAAE,0BAA0D;IACnE,gBAAgB,EAAE,CAAC,MAAmB,EAAE,KAAgC,EAAE,EAAE;QAC3E,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,iBAAiC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC7E,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,aAAa,EAAE,CAAC,EAAE,EAAE;YACvC,MAAM,OAAO,GAAG,KAAK,CAAC,mBAAmB;iBACvC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,eAA+B,IAAI,CAAC,CAAC,MAAM,iBAAiC,CAAC;iBACnG,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;iBACxB,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CACb,IAAA,uBAAe,EACd,CAAC,EACD,KAAK,CAAC,uBAAuB,EAC7B,qBAAI,CAAC,MAAM,EACX,KAAK,CAAC,SAAS,CAAC,SAAS,EACzB,KAAK,CAAC,SAAS,CAAC,QAAQ,CACxB,CACD,CAAC;YACH,MAAM,MAAM,GAAG,IAAA,kBAAU,EAAC,OAAO,EAAE,MAAM,CAAC,CAAC;YAC3C,IAAI,MAAM,EAAE;gBACX,IAAA,qBAAY,EACX,MAAM,EACN,IAAI,EACJ,KAAK,CAAC,mBAAmB,EACzB,KAAK,CAAC,uBAAuB,EAC7B,KAAK,CAAC,cAAc,EACpB,KAAK,CAAC,SAAS,CACf,CAAC;gBACF,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC,mBAAmB,CAC5C,MAAM,EACN,MAAM,EACN,KAAK,CAAC,mBAAmB,EACzB,KAAK,CAAC,uBAAuB,EAC7B,KAAK,CAAC,cAAc,CACpB,CAAC;aACF;SACD;QACD,OAAO,EAAE,CAAC;IACX,CAAC;CACD,CAAC","sourcesContent":["import { Race } from '@firestone-hs/reference-data';\r\nimport { BoardEntity } from '../../../board-entity';\r\nimport { updateReborn } from '../../../keywords/reborn';\r\nimport { CardIds } from '../../../services/card-ids';\r\nimport { pickRandom } from '../../../services/utils';\r\nimport { DeathrattleTriggeredInput } from '../../../simulation/deathrattle-on-trigger';\r\nimport { hasCorrectTribe } from '../../../utils';\r\nimport { DeathrattleSpawnCard } from '../../card.interface';\r\n\r\nexport const Mummifier: DeathrattleSpawnCard = {\r\n\tcardIds: [CardIds.Mummifier_BG28_309, CardIds.Mummifier_BG28_309_G],\r\n\tdeathrattleSpawn: (minion: BoardEntity, input: DeathrattleTriggeredInput) => {\r\n\t\tconst mummifierBuff = minion.cardId === CardIds.Mummifier_BG28_309_G ? 2 : 1;\r\n\t\tfor (let j = 0; j < mummifierBuff; j++) {\r\n\t\t\tconst targets = input.boardWithDeadEntity\r\n\t\t\t\t.filter((e) => e.cardId !== CardIds.Mummifier_BG28_309 && e.cardId !== CardIds.Mummifier_BG28_309_G)\r\n\t\t\t\t.filter((e) => !e.reborn)\r\n\t\t\t\t.filter((e) =>\r\n\t\t\t\t\thasCorrectTribe(\r\n\t\t\t\t\t\te,\r\n\t\t\t\t\t\tinput.boardWithDeadEntityHero,\r\n\t\t\t\t\t\tRace.UNDEAD,\r\n\t\t\t\t\t\tinput.gameState.anomalies,\r\n\t\t\t\t\t\tinput.gameState.allCards,\r\n\t\t\t\t\t),\r\n\t\t\t\t);\r\n\t\t\tconst target = pickRandom(targets, minion);\r\n\t\t\tif (target) {\r\n\t\t\t\tupdateReborn(\r\n\t\t\t\t\ttarget,\r\n\t\t\t\t\ttrue,\r\n\t\t\t\t\tinput.boardWithDeadEntity,\r\n\t\t\t\t\tinput.boardWithDeadEntityHero,\r\n\t\t\t\t\tinput.otherBoardHero,\r\n\t\t\t\t\tinput.gameState,\r\n\t\t\t\t);\r\n\t\t\t\tinput.gameState.spectator.registerPowerTarget(\r\n\t\t\t\t\tminion,\r\n\t\t\t\t\ttarget,\r\n\t\t\t\t\tinput.boardWithDeadEntity,\r\n\t\t\t\t\tinput.boardWithDeadEntityHero,\r\n\t\t\t\t\tinput.otherBoardHero,\r\n\t\t\t\t);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn [];\r\n\t},\r\n};\r\n"]}
|
|
@@ -6,9 +6,7 @@ exports.RedtuskThornraiser = {
|
|
|
6
6
|
cardIds: ["BG35_433", "BG35_433_G"],
|
|
7
7
|
endOfTurn: (minion, input) => {
|
|
8
8
|
const mult = minion.cardId === "BG35_433_G" ? 2 : 1;
|
|
9
|
-
const gemId = minion.cardId === "
|
|
10
|
-
? "BG20_GEM_Reborn_G"
|
|
11
|
-
: "BG20_GEM_Reborn";
|
|
9
|
+
const gemId = minion.cardId === "BG20_GEM_Reborn";
|
|
12
10
|
const ids = Array(mult).fill(gemId);
|
|
13
11
|
(0, cards_in_hand_1.addCardsInHand)(input.hero, input.board, ids, input.gameState);
|
|
14
12
|
return true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"redtusk-thornraiser.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/redtusk-thornraiser.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"redtusk-thornraiser.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/redtusk-thornraiser.ts"],"names":[],"mappings":";;;AAEA,qEAAmE;AAGtD,QAAA,kBAAkB,GAAkB;IAChD,OAAO,EAAE,0BAA4E;IACrF,SAAS,EAAE,CAAC,MAAmB,EAAE,KAAqB,EAAE,EAAE;QACzD,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,iBAA0C,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC7E,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,sBAAqC,CAAC;QACjE,MAAM,GAAG,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACpC,IAAA,8BAAc,EAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,EAAE,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;QAC9D,OAAO,IAAI,CAAC;IACb,CAAC;CACD,CAAC","sourcesContent":["import { BoardEntity } from '../../../board-entity';\r\nimport { CardIds } from '../../../services/card-ids';\r\nimport { addCardsInHand } from '../../../simulation/cards-in-hand';\r\nimport { EndOfTurnCard, EndOfTurnInput } from '../../card.interface';\r\n\r\nexport const RedtuskThornraiser: EndOfTurnCard = {\r\n\tcardIds: [CardIds.RedtuskThornraiser_BG35_433, CardIds.RedtuskThornraiser_BG35_433_G],\r\n\tendOfTurn: (minion: BoardEntity, input: EndOfTurnInput) => {\r\n\t\tconst mult = minion.cardId === CardIds.RedtuskThornraiser_BG35_433_G ? 2 : 1;\r\n\t\tconst gemId = minion.cardId === CardIds.BloodGem_BG20_GEM_Reborn;\r\n\t\tconst ids = Array(mult).fill(gemId);\r\n\t\taddCardsInHand(input.hero, input.board, ids, input.gameState);\r\n\t\treturn true;\r\n\t},\r\n};\r\n"]}
|
|
@@ -11,7 +11,7 @@ exports.TideRaiser = {
|
|
|
11
11
|
const raw = (0, attack_1.getNeighbours)(input.boardWithDeadEntity, minion, input.deadEntityIndexFromRight)
|
|
12
12
|
.filter((e) => !!e)
|
|
13
13
|
.filter((e) => e.health > 0 && !e.definitelyDead);
|
|
14
|
-
const targets = golden ? raw : raw.length ? [(0, utils_1.pickRandom)(raw)] : [];
|
|
14
|
+
const targets = golden ? raw : raw.length ? [(0, utils_1.pickRandom)(raw, minion)] : [];
|
|
15
15
|
for (const t of targets) {
|
|
16
16
|
(0, cast_tavern_spell_1.castTavernSpell)("BG32_815", {
|
|
17
17
|
spellCardId: "BG32_815",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tide-raiser.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/tide-raiser.ts"],"names":[],"mappings":";;;AACA,4EAAuE;AAEvE,mDAAqD;AACrD,uDAA2D;AAI9C,QAAA,UAAU,GAAyB;IAC/C,OAAO,EAAE,0BAA4D;IACrE,gBAAgB,EAAE,CAAC,MAAmB,EAAE,KAAgC,EAA0B,EAAE;QACnG,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,iBAAkC,CAAC;QAC/D,MAAM,GAAG,GAAG,IAAA,sBAAa,EAAC,KAAK,CAAC,mBAAmB,EAAE,MAAM,EAAE,KAAK,CAAC,wBAAwB,CAAC;aAC1F,MAAM,CAAC,CAAC,CAAC,EAAoB,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;aACpC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC;QACnD,MAAM,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAA,kBAAU,EAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"tide-raiser.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/tide-raiser.ts"],"names":[],"mappings":";;;AACA,4EAAuE;AAEvE,mDAAqD;AACrD,uDAA2D;AAI9C,QAAA,UAAU,GAAyB;IAC/C,OAAO,EAAE,0BAA4D;IACrE,gBAAgB,EAAE,CAAC,MAAmB,EAAE,KAAgC,EAA0B,EAAE;QACnG,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,iBAAkC,CAAC;QAC/D,MAAM,GAAG,GAAG,IAAA,sBAAa,EAAC,KAAK,CAAC,mBAAmB,EAAE,MAAM,EAAE,KAAK,CAAC,wBAAwB,CAAC;aAC1F,MAAM,CAAC,CAAC,CAAC,EAAoB,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;aACpC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC;QACnD,MAAM,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAA,kBAAU,EAAC,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QAC3E,KAAK,MAAM,CAAC,IAAI,OAAO,EAAE;YACxB,IAAA,mCAAe,cAAgC;gBAC9C,WAAW,YAA+B;gBAC1C,MAAM,EAAE,KAAK,CAAC,uBAAuB;gBACrC,MAAM,EAAE,CAAC;gBACT,KAAK,EAAE,KAAK,CAAC,mBAAmB;gBAChC,IAAI,EAAE,KAAK,CAAC,uBAAuB;gBACnC,UAAU,EAAE,KAAK,CAAC,UAAU;gBAC5B,SAAS,EAAE,KAAK,CAAC,cAAc;gBAC/B,SAAS,EAAE,KAAK,CAAC,SAAS;aAC1B,CAAC,CAAC;SACH;QACD,OAAO,EAAE,CAAC;IACX,CAAC;CACD,CAAC","sourcesContent":["import { BoardEntity } from '../../../board-entity';\r\nimport { castTavernSpell } from '../../../mechanics/cast-tavern-spell';\r\nimport { CardIds } from '../../../services/card-ids';\r\nimport { pickRandom } from '../../../services/utils';\r\nimport { getNeighbours } from '../../../simulation/attack';\r\nimport { DeathrattleTriggeredInput } from '../../../simulation/deathrattle-on-trigger';\r\nimport { DeathrattleSpawnCard } from '../../card.interface';\r\n\r\nexport const TideRaiser: DeathrattleSpawnCard = {\r\n\tcardIds: [CardIds.TideRaiser_BG34_920, CardIds.TideRaiser_BG34_920_G],\r\n\tdeathrattleSpawn: (minion: BoardEntity, input: DeathrattleTriggeredInput): readonly BoardEntity[] => {\r\n\t\tconst golden = minion.cardId === CardIds.TideRaiser_BG34_920_G;\r\n\t\tconst raw = getNeighbours(input.boardWithDeadEntity, minion, input.deadEntityIndexFromRight)\r\n\t\t\t.filter((e): e is BoardEntity => !!e)\r\n\t\t\t.filter((e) => e.health > 0 && !e.definitelyDead);\r\n\t\tconst targets = golden ? raw : raw.length ? [pickRandom(raw, minion)] : [];\r\n\t\tfor (const t of targets) {\r\n\t\t\tcastTavernSpell(CardIds.ShiftingTide_BG32_815, {\r\n\t\t\t\tspellCardId: CardIds.ShiftingTide_BG32_815,\r\n\t\t\t\tsource: input.boardWithDeadEntityHero,\r\n\t\t\t\ttarget: t,\r\n\t\t\t\tboard: input.boardWithDeadEntity,\r\n\t\t\t\thero: input.boardWithDeadEntityHero,\r\n\t\t\t\totherBoard: input.otherBoard,\r\n\t\t\t\totherHero: input.otherBoardHero,\r\n\t\t\t\tgameState: input.gameState,\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn [];\r\n\t},\r\n};\r\n"]}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Vinespeaker = void 0;
|
|
4
4
|
const reference_data_1 = require("@firestone-hs/reference-data");
|
|
5
|
-
const temp_card_ids_1 = require("../../../temp-card-ids");
|
|
6
5
|
const utils_1 = require("../../../utils");
|
|
7
6
|
exports.Vinespeaker = {
|
|
8
7
|
cardIds: ["BG35_437", "BG35_437_G"],
|
|
@@ -12,7 +11,7 @@ exports.Vinespeaker = {
|
|
|
12
11
|
}
|
|
13
12
|
const mult = minion.cardId === "BG35_437_G" ? 2 : 1;
|
|
14
13
|
input.hero.globalInfo.BloodGemAttackBonus += 1 * mult;
|
|
15
|
-
const portraits = input.hero.trinkets.filter((t) => t.cardId ===
|
|
14
|
+
const portraits = input.hero.trinkets.filter((t) => t.cardId === "BG35_MagicItem_433");
|
|
16
15
|
if (portraits.length > 0) {
|
|
17
16
|
input.hero.globalInfo.BloodGemHealthBonus += 1 * mult;
|
|
18
17
|
}
|