@firestone-hs/simulate-bgs-battle 1.1.761 → 1.1.762
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/minion/drustfallen-butcher.js +1 -1
- package/dist/cards/impl/minion/drustfallen-butcher.js.map +1 -1
- package/dist/cards/impl/minion/faceless-converter.js +4 -2
- package/dist/cards/impl/minion/faceless-converter.js.map +1 -1
- package/dist/cards/impl/minion/joyous.js +2 -3
- package/dist/cards/impl/minion/joyous.js.map +1 -1
- package/dist/cards/impl/minion/the-shadow-of-doubt.js +3 -2
- package/dist/cards/impl/minion/the-shadow-of-doubt.js.map +1 -1
- package/dist/cards/impl/minion/vicious-mindslasher.js +3 -2
- package/dist/cards/impl/minion/vicious-mindslasher.js.map +1 -1
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ exports.DrustfallenButcher = void 0;
|
|
|
4
4
|
const cards_in_hand_1 = require("../../../simulation/cards-in-hand");
|
|
5
5
|
exports.DrustfallenButcher = {
|
|
6
6
|
cardIds: ["BG32_324", "BG32_324_G"],
|
|
7
|
-
baseAvengeValue: (cardId) =>
|
|
7
|
+
baseAvengeValue: (cardId) => 4,
|
|
8
8
|
avenge: (minion, input) => {
|
|
9
9
|
const mult = minion.cardId === "BG32_324_G" ? 2 : 1;
|
|
10
10
|
const cardsToAdd = Array(mult).fill("BG28_604");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drustfallen-butcher.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/drustfallen-butcher.ts"],"names":[],"mappings":";;;AAUA,qEAAmE;AAGtD,QAAA,kBAAkB,GAAe;IAC7C,OAAO,EAAE,0BAA4E;IACrF,eAAe,EAAE,CAAC,MAAc,EAAE,EAAE,CAAC,CAAC;IACtC,MAAM,EAAE,CAAC,MAAmB,EAAE,KAAkB,EAAE,EAAE;QACnD,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,iBAA0C,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC7E,MAAM,UAAU,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,YAA6B,CAAC;QACjE,IAAA,8BAAc,EAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IACtE,CAAC;CACD,CAAC","sourcesContent":["/**\r\n * Drustfallen Butcher\r\n * Avenge (4): Get a Butchering.\r\n *\r\n * Golden Drustfallen Butcher\r\n * Avenge (4): Get 2 Butcherings.\r\n */\r\nimport { BoardEntity } from '../../../board-entity';\r\nimport { CardIds } from '../../../services/card-ids';\r\nimport { AvengeInput } from '../../../simulation/avenge';\r\nimport { addCardsInHand } from '../../../simulation/cards-in-hand';\r\nimport { AvengeCard } from '../../card.interface';\r\n\r\nexport const DrustfallenButcher: AvengeCard = {\r\n\tcardIds: [CardIds.DrustfallenButcher_BG32_324, CardIds.DrustfallenButcher_BG32_324_G],\r\n\tbaseAvengeValue: (cardId: string) =>
|
|
1
|
+
{"version":3,"file":"drustfallen-butcher.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/drustfallen-butcher.ts"],"names":[],"mappings":";;;AAUA,qEAAmE;AAGtD,QAAA,kBAAkB,GAAe;IAC7C,OAAO,EAAE,0BAA4E;IACrF,eAAe,EAAE,CAAC,MAAc,EAAE,EAAE,CAAC,CAAC;IACtC,MAAM,EAAE,CAAC,MAAmB,EAAE,KAAkB,EAAE,EAAE;QACnD,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,iBAA0C,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC7E,MAAM,UAAU,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,YAA6B,CAAC;QACjE,IAAA,8BAAc,EAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IACtE,CAAC;CACD,CAAC","sourcesContent":["/**\r\n * Drustfallen Butcher\r\n * Avenge (4): Get a Butchering.\r\n *\r\n * Golden Drustfallen Butcher\r\n * Avenge (4): Get 2 Butcherings.\r\n */\r\nimport { BoardEntity } from '../../../board-entity';\r\nimport { CardIds } from '../../../services/card-ids';\r\nimport { AvengeInput } from '../../../simulation/avenge';\r\nimport { addCardsInHand } from '../../../simulation/cards-in-hand';\r\nimport { AvengeCard } from '../../card.interface';\r\n\r\nexport const DrustfallenButcher: AvengeCard = {\r\n\tcardIds: [CardIds.DrustfallenButcher_BG32_324, CardIds.DrustfallenButcher_BG32_324_G],\r\n\tbaseAvengeValue: (cardId: string) => 4,\r\n\tavenge: (minion: BoardEntity, input: AvengeInput) => {\r\n\t\tconst mult = minion.cardId === CardIds.DrustfallenButcher_BG32_324_G ? 2 : 1;\r\n\t\tconst cardsToAdd = Array(mult).fill(CardIds.Butchering_BG28_604);\r\n\t\taddCardsInHand(input.hero, input.board, cardsToAdd, input.gameState);\r\n\t},\r\n};\r\n"]}
|
|
@@ -6,8 +6,10 @@ exports.FacelessConverter = {
|
|
|
6
6
|
cardIds: ["BG36_318", "BG36_318_G"],
|
|
7
7
|
deathrattleEffect: (minion, input) => {
|
|
8
8
|
const mult = minion.cardId === "BG36_318_G" ? 2 : 1;
|
|
9
|
-
const
|
|
10
|
-
|
|
9
|
+
const base = 1 + input.boardWithDeadEntityHero.globalInfo.TavernSpellsCastThisGame;
|
|
10
|
+
const atk = 2 * mult * base;
|
|
11
|
+
const hp = 1 * mult * base;
|
|
12
|
+
(0, deity_1.buffYourDeity)(input.boardWithDeadEntityHero, input.boardWithDeadEntity, minion, atk, hp, input.gameState);
|
|
11
13
|
},
|
|
12
14
|
};
|
|
13
15
|
//# sourceMappingURL=faceless-converter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"faceless-converter.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/faceless-converter.ts"],"names":[],"mappings":";;;AAUA,qDAA0D;AAG7C,QAAA,iBAAiB,GAA0B;IACvD,OAAO,EAAE,0BAA0E;IACnF,iBAAiB,EAAE,CAAC,MAAmB,EAAE,KAAgC,EAAE,EAAE;QAC5E,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,iBAAyC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC5E,MAAM,
|
|
1
|
+
{"version":3,"file":"faceless-converter.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/faceless-converter.ts"],"names":[],"mappings":";;;AAUA,qDAA0D;AAG7C,QAAA,iBAAiB,GAA0B;IACvD,OAAO,EAAE,0BAA0E;IACnF,iBAAiB,EAAE,CAAC,MAAmB,EAAE,KAAgC,EAAE,EAAE;QAC5E,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,iBAAyC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC5E,MAAM,IAAI,GAAG,CAAC,GAAG,KAAK,CAAC,uBAAuB,CAAC,UAAU,CAAC,wBAAwB,CAAC;QACnF,MAAM,GAAG,GAAG,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC;QAC5B,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC;QAC3B,IAAA,qBAAa,EAAC,KAAK,CAAC,uBAAuB,EAAE,KAAK,CAAC,mBAAmB,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAC3G,CAAC;CACD,CAAC","sourcesContent":["/**\r\n * Faceless Converter (Tier 5, 5/5)\r\n * Deathrattle: Give your Deity +1/+1 (improved by each Tavern spell you've cast this game).\r\n *\r\n * Golden Faceless Converter (Tier 5, 10/10)\r\n * Deathrattle: Give your Deity +2/+2 (improved by each Tavern spell you've cast this game).\r\n */\r\nimport { BoardEntity } from '../../../board-entity';\r\nimport { CardIds } from '../../../services/card-ids';\r\nimport { DeathrattleTriggeredInput } from '../../../simulation/deathrattle-on-trigger';\r\nimport { buffYourDeity } from '../../../simulation/deity';\r\nimport { DeathrattleEffectCard } from '../../card.interface';\r\n\r\nexport const FacelessConverter: DeathrattleEffectCard = {\r\n\tcardIds: [CardIds.FacelessConverter_BG36_318, CardIds.FacelessConverter_BG36_318_G],\r\n\tdeathrattleEffect: (minion: BoardEntity, input: DeathrattleTriggeredInput) => {\r\n\t\tconst mult = minion.cardId === CardIds.FacelessConverter_BG36_318_G ? 2 : 1;\r\n\t\tconst base = 1 + input.boardWithDeadEntityHero.globalInfo.TavernSpellsCastThisGame;\r\n\t\tconst atk = 2 * mult * base;\r\n\t\tconst hp = 1 * mult * base;\r\n\t\tbuffYourDeity(input.boardWithDeadEntityHero, input.boardWithDeadEntity, minion, atk, hp, input.gameState);\r\n\t},\r\n};\r\n"]}
|
|
@@ -5,9 +5,8 @@ const deity_1 = require("../../../simulation/deity");
|
|
|
5
5
|
exports.Joyous = {
|
|
6
6
|
cardIds: ["BG36_110", "BG36_110_G"],
|
|
7
7
|
battlecry: (minion, input) => {
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
(0, deity_1.buffYourDeity)(input.hero, input.board, minion, atk, hp, input.gameState);
|
|
8
|
+
const mult = minion.cardId === "BG36_110_G" ? 2 : 1;
|
|
9
|
+
(0, deity_1.buffYourDeity)(input.hero, input.board, minion, 2 * mult, 1 * mult, input.gameState);
|
|
11
10
|
return true;
|
|
12
11
|
},
|
|
13
12
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"joyous.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/joyous.ts"],"names":[],"mappings":";;;AAUA,qDAA0D;AAG7C,QAAA,MAAM,GAAkB;IACpC,OAAO,EAAE,0BAAoD;IAC7D,SAAS,EAAE,CAAC,MAAmB,EAAE,KAAqB,EAAE,EAAE;QACzD,MAAM,
|
|
1
|
+
{"version":3,"file":"joyous.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/joyous.ts"],"names":[],"mappings":";;;AAUA,qDAA0D;AAG7C,QAAA,MAAM,GAAkB;IACpC,OAAO,EAAE,0BAAoD;IAC7D,SAAS,EAAE,CAAC,MAAmB,EAAE,KAAqB,EAAE,EAAE;QACzD,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,iBAA8B,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACjE,IAAA,qBAAa,EAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC,GAAG,IAAI,EAAE,CAAC,GAAG,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;QACpF,OAAO,IAAI,CAAC;IACb,CAAC;CACD,CAAC","sourcesContent":["/**\r\n * Joyous (Tier 1, 2/3)\r\n * Battlecry: Give your Deity +2/+2.\r\n *\r\n * Golden Joyous (Tier 1, 4/6)\r\n * Battlecry: Give your Deity +4/+4.\r\n */\r\nimport { BoardEntity } from '../../../board-entity';\r\nimport { CardIds } from '../../../services/card-ids';\r\nimport { BattlecryInput } from '../../../simulation/battlecries';\r\nimport { buffYourDeity } from '../../../simulation/deity';\r\nimport { BattlecryCard } from '../../card.interface';\r\n\r\nexport const Joyous: BattlecryCard = {\r\n\tcardIds: [CardIds.Joyous_BG36_110, CardIds.Joyous_BG36_110_G],\r\n\tbattlecry: (minion: BoardEntity, input: BattlecryInput) => {\r\n\t\tconst mult = minion.cardId === CardIds.Joyous_BG36_110_G ? 2 : 1;\r\n\t\tbuffYourDeity(input.hero, input.board, minion, 2 * mult, 1 * mult, input.gameState);\r\n\t\treturn true;\r\n\t},\r\n};\r\n"]}
|
|
@@ -5,8 +5,9 @@ const deity_1 = require("../../../simulation/deity");
|
|
|
5
5
|
exports.TheShadowOfDoubt = {
|
|
6
6
|
cardIds: ["BG36_109", "BG36_109_G"],
|
|
7
7
|
onCardAddedToHand: (minion, input) => {
|
|
8
|
-
const
|
|
9
|
-
const
|
|
8
|
+
const mult = minion.cardId === "BG36_109_G" ? 2 : 1;
|
|
9
|
+
const atk = 4 * mult;
|
|
10
|
+
const hp = 5 * mult;
|
|
10
11
|
(0, deity_1.buffYourDeity)(input.hero, input.board, minion, atk, hp, input.gameState);
|
|
11
12
|
},
|
|
12
13
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"the-shadow-of-doubt.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/the-shadow-of-doubt.ts"],"names":[],"mappings":";;;AAUA,qDAA0D;AAG7C,QAAA,gBAAgB,GAA0B;IACtD,OAAO,EAAE,0BAAwE;IACjF,iBAAiB,EAAE,CAAC,MAAmB,EAAE,KAA6B,EAAE,EAAE;QACzE,MAAM,
|
|
1
|
+
{"version":3,"file":"the-shadow-of-doubt.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/the-shadow-of-doubt.ts"],"names":[],"mappings":";;;AAUA,qDAA0D;AAG7C,QAAA,gBAAgB,GAA0B;IACtD,OAAO,EAAE,0BAAwE;IACjF,iBAAiB,EAAE,CAAC,MAAmB,EAAE,KAA6B,EAAE,EAAE;QACzE,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,iBAAwC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC3E,MAAM,GAAG,GAAG,CAAC,GAAG,IAAI,CAAC;QACrB,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC;QACpB,IAAA,qBAAa,EAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAC1E,CAAC;CACD,CAAC","sourcesContent":["/**\r\n * The Shadow of Doubt (Tier 6, 6/8)\r\n * Whenever a card is added to your hand, give your Deity +3/+4.\r\n *\r\n * Golden The Shadow of Doubt (Tier 6, 12/16)\r\n * Whenever a card is added to your hand, give your Deity +6/+8.\r\n */\r\nimport { BoardEntity } from '../../../board-entity';\r\nimport { CardIds } from '../../../services/card-ids';\r\nimport { OnCardAddedToHandInput } from '../../../simulation/cards-in-hand';\r\nimport { buffYourDeity } from '../../../simulation/deity';\r\nimport { OnCardAddedToHandCard } from '../../card.interface';\r\n\r\nexport const TheShadowOfDoubt: OnCardAddedToHandCard = {\r\n\tcardIds: [CardIds.TheShadowOfDoubt_BG36_109, CardIds.TheShadowOfDoubt_BG36_109_G],\r\n\tonCardAddedToHand: (minion: BoardEntity, input: OnCardAddedToHandInput) => {\r\n\t\tconst mult = minion.cardId === CardIds.TheShadowOfDoubt_BG36_109_G ? 2 : 1;\r\n\t\tconst atk = 4 * mult;\r\n\t\tconst hp = 5 * mult;\r\n\t\tbuffYourDeity(input.hero, input.board, minion, atk, hp, input.gameState);\r\n\t},\r\n};\r\n"]}
|
|
@@ -8,8 +8,9 @@ exports.ViciousMindslasher = {
|
|
|
8
8
|
cardIds: ["BG36_108", "BG36_108_G"],
|
|
9
9
|
onTavernSpellCast: (minion, input) => {
|
|
10
10
|
var _a;
|
|
11
|
-
const
|
|
12
|
-
const
|
|
11
|
+
const mult = minion.cardId === "BG36_108_G" ? 2 : 1;
|
|
12
|
+
const atk = 1 * mult;
|
|
13
|
+
const hp = 2 * mult;
|
|
13
14
|
(0, stats_1.modifyStats)(minion, minion, atk, hp, input.board, input.hero, input.gameState);
|
|
14
15
|
(0, deity_1.buffYourDeity)(input.hero, input.board, minion, atk, hp, input.gameState);
|
|
15
16
|
if ((_a = input.hero.trinkets) === null || _a === void 0 ? void 0 : _a.some((t) => t.cardId === "BG36_MagicItem_402")) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vicious-mindslasher.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/vicious-mindslasher.ts"],"names":[],"mappings":";;;AAWA,uDAA2D;AAC3D,qDAA0D;AAC1D,qDAAwD;AAG3C,QAAA,kBAAkB,GAA0B;IACxD,OAAO,EAAE,0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D;IACF,CAAC;CACD,CAAC","sourcesContent":["/**\r\n * Vicious Mindslasher (Tier 3, 3/1)\r\n * Whenever you cast a Tavern spell, give this and your Deity +1/+3.\r\n *\r\n * Golden Vicious Mindslasher (Tier 3, 6/2)\r\n * Whenever you cast a Tavern spell, give this and your Deity +2/+6.\r\n *\r\n * Mindslasher Portrait: also give the stats to adjacent minions.\r\n */\r\nimport { BoardEntity } from '../../../board-entity';\r\nimport { CardIds } from '../../../services/card-ids';\r\nimport { getNeighbours } from '../../../simulation/attack';\r\nimport { buffYourDeity } from '../../../simulation/deity';\r\nimport { modifyStats } from '../../../simulation/stats';\r\nimport { CastSpellInput, OnTavernSpellCastCard } from '../../card.interface';\r\n\r\nexport const ViciousMindslasher: OnTavernSpellCastCard = {\r\n\tcardIds: [CardIds.ViciousMindslasher_BG36_108, CardIds.ViciousMindslasher_BG36_108_G],\r\n\tonTavernSpellCast: (minion: BoardEntity, input: CastSpellInput) => {\r\n\t\tconst mult = minion.cardId === CardIds.ViciousMindslasher_BG36_108_G ? 2 : 1;\r\n\t\tconst atk = 1 * mult;\r\n\t\tconst hp = 2 * mult;\r\n\t\tmodifyStats(minion, minion, atk, hp, input.board, input.hero, input.gameState);\r\n\t\tbuffYourDeity(input.hero, input.board, minion, atk, hp, input.gameState);\r\n\t\tif (input.hero.trinkets?.some((t) => t.cardId === CardIds.MindslasherPortrait_BG36_MagicItem_402)) {\r\n\t\t\tfor (const neighbour of getNeighbours(input.board, minion)) {\r\n\t\t\t\tmodifyStats(neighbour, minion, atk, hp, input.board, input.hero, input.gameState);\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n};\r\n"]}
|