@firestone-hs/simulate-bgs-battle 1.1.570 → 1.1.572
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/card.interface.d.ts +0 -13
- package/dist/cards/card.interface.js +1 -5
- package/dist/cards/card.interface.js.map +1 -1
- package/dist/cards/impl/_card-mappings.js +2 -0
- package/dist/cards/impl/_card-mappings.js.map +1 -1
- package/dist/cards/impl/enchantments/crystal-infuser-enchantment.d.ts +2 -2
- package/dist/cards/impl/enchantments/crystal-infuser-enchantment.js +2 -1
- package/dist/cards/impl/enchantments/crystal-infuser-enchantment.js.map +1 -1
- package/dist/cards/impl/minion/anubarak-nerubian-king.d.ts +2 -2
- package/dist/cards/impl/minion/anubarak-nerubian-king.js +2 -1
- package/dist/cards/impl/minion/anubarak-nerubian-king.js.map +1 -1
- package/dist/cards/impl/minion/baneling.d.ts +2 -2
- package/dist/cards/impl/minion/baneling.js +2 -1
- package/dist/cards/impl/minion/baneling.js.map +1 -1
- package/dist/cards/impl/minion/battlecruiser.d.ts +2 -2
- package/dist/cards/impl/minion/battlecruiser.js +4 -3
- package/dist/cards/impl/minion/battlecruiser.js.map +1 -1
- package/dist/cards/impl/minion/bronze-steward.d.ts +2 -2
- package/dist/cards/impl/minion/bronze-steward.js +2 -1
- package/dist/cards/impl/minion/bronze-steward.js.map +1 -1
- package/dist/cards/impl/minion/coilskar-sapper.d.ts +2 -2
- package/dist/cards/impl/minion/coilskar-sapper.js +2 -1
- package/dist/cards/impl/minion/coilskar-sapper.js.map +1 -1
- package/dist/cards/impl/minion/cruise-controller.d.ts +2 -2
- package/dist/cards/impl/minion/cruise-controller.js +2 -1
- package/dist/cards/impl/minion/cruise-controller.js.map +1 -1
- package/dist/cards/impl/minion/firescale-hoarder.d.ts +2 -2
- package/dist/cards/impl/minion/firescale-hoarder.js +2 -1
- package/dist/cards/impl/minion/firescale-hoarder.js.map +1 -1
- package/dist/cards/impl/minion/gentle-djinni.d.ts +2 -2
- package/dist/cards/impl/minion/gentle-djinni.js +2 -1
- package/dist/cards/impl/minion/gentle-djinni.js.map +1 -1
- package/dist/cards/impl/minion/glowing-cinder.d.ts +2 -2
- package/dist/cards/impl/minion/glowing-cinder.js +2 -1
- package/dist/cards/impl/minion/glowing-cinder.js.map +1 -1
- package/dist/cards/impl/minion/goldrinn-the-great-wolf.d.ts +2 -2
- package/dist/cards/impl/minion/goldrinn-the-great-wolf.js +2 -1
- package/dist/cards/impl/minion/goldrinn-the-great-wolf.js.map +1 -1
- package/dist/cards/impl/minion/gormling-gourmet.d.ts +2 -2
- package/dist/cards/impl/minion/gormling-gourmet.js +2 -1
- package/dist/cards/impl/minion/gormling-gourmet.js.map +1 -1
- package/dist/cards/impl/minion/impulsive-trickster.d.ts +2 -2
- package/dist/cards/impl/minion/impulsive-trickster.js +2 -1
- package/dist/cards/impl/minion/impulsive-trickster.js.map +1 -1
- package/dist/cards/impl/minion/leeroy-the-reckless.d.ts +2 -2
- package/dist/cards/impl/minion/leeroy-the-reckless.js +2 -1
- package/dist/cards/impl/minion/leeroy-the-reckless.js.map +1 -1
- package/dist/cards/impl/minion/metallic-hunter.d.ts +2 -2
- package/dist/cards/impl/minion/metallic-hunter.js +2 -1
- package/dist/cards/impl/minion/metallic-hunter.js.map +1 -1
- package/dist/cards/impl/minion/mummifier.d.ts +2 -2
- package/dist/cards/impl/minion/mummifier.js +2 -1
- package/dist/cards/impl/minion/mummifier.js.map +1 -1
- package/dist/cards/impl/minion/mutated-lasher.d.ts +2 -2
- package/dist/cards/impl/minion/mutated-lasher.js +2 -1
- package/dist/cards/impl/minion/mutated-lasher.js.map +1 -1
- package/dist/cards/impl/minion/nightmare-par-tea-guest.d.ts +2 -2
- package/dist/cards/impl/minion/nightmare-par-tea-guest.js +2 -1
- package/dist/cards/impl/minion/nightmare-par-tea-guest.js.map +1 -1
- package/dist/cards/impl/minion/operatic-belcher.d.ts +2 -2
- package/dist/cards/impl/minion/operatic-belcher.js +2 -1
- package/dist/cards/impl/minion/operatic-belcher.js.map +1 -1
- package/dist/cards/impl/minion/rylak-metalhead.d.ts +2 -2
- package/dist/cards/impl/minion/rylak-metalhead.js +2 -1
- package/dist/cards/impl/minion/rylak-metalhead.js.map +1 -1
- package/dist/cards/impl/minion/selfless-hero.d.ts +2 -2
- package/dist/cards/impl/minion/selfless-hero.js +2 -1
- package/dist/cards/impl/minion/selfless-hero.js.map +1 -1
- package/dist/cards/impl/minion/shadowdancer.d.ts +2 -2
- package/dist/cards/impl/minion/shadowdancer.js +2 -1
- package/dist/cards/impl/minion/shadowdancer.js.map +1 -1
- package/dist/cards/impl/minion/sharptooth-snapper.d.ts +2 -2
- package/dist/cards/impl/minion/sharptooth-snapper.js +5 -1
- package/dist/cards/impl/minion/sharptooth-snapper.js.map +1 -1
- package/dist/cards/impl/minion/showy-cyclist.d.ts +2 -2
- package/dist/cards/impl/minion/showy-cyclist.js +2 -1
- package/dist/cards/impl/minion/showy-cyclist.js.map +1 -1
- package/dist/cards/impl/minion/silithid-burrower.d.ts +2 -2
- package/dist/cards/impl/minion/silithid-burrower.js +2 -1
- package/dist/cards/impl/minion/silithid-burrower.js.map +1 -1
- package/dist/cards/impl/minion/slumber-sorcerer.d.ts +2 -2
- package/dist/cards/impl/minion/slumber-sorcerer.js +2 -1
- package/dist/cards/impl/minion/slumber-sorcerer.js.map +1 -1
- package/dist/cards/impl/minion/thorncaller.d.ts +2 -2
- package/dist/cards/impl/minion/thorncaller.js +2 -1
- package/dist/cards/impl/minion/thorncaller.js.map +1 -1
- package/dist/cards/impl/minion/thousandth-paper-drake.js +2 -1
- package/dist/cards/impl/minion/thousandth-paper-drake.js.map +1 -1
- package/dist/cards/impl/minion/three-lil-quilboar.d.ts +2 -2
- package/dist/cards/impl/minion/three-lil-quilboar.js +2 -1
- package/dist/cards/impl/minion/three-lil-quilboar.js.map +1 -1
- package/dist/cards/impl/minion/tunnel-blaster.d.ts +2 -2
- package/dist/cards/impl/minion/tunnel-blaster.js +2 -1
- package/dist/cards/impl/minion/tunnel-blaster.js.map +1 -1
- package/dist/cards/impl/minion/turquoise-skitterer.d.ts +2 -2
- package/dist/cards/impl/minion/turquoise-skitterer.js +2 -5
- package/dist/cards/impl/minion/turquoise-skitterer.js.map +1 -1
- package/dist/cards/impl/minion/valiant-tiger.d.ts +2 -2
- package/dist/cards/impl/minion/valiant-tiger.js +2 -1
- package/dist/cards/impl/minion/valiant-tiger.js.map +1 -1
- package/dist/input-sanitation.js +5 -1
- package/dist/input-sanitation.js.map +1 -1
- package/dist/simulate-bgs-battle.js +1 -1
- package/dist/simulate-bgs-battle.js.map +1 -1
- package/dist/simulation/deathrattle-effects.d.ts +2 -1
- package/dist/simulation/deathrattle-effects.js +3 -481
- package/dist/simulation/deathrattle-effects.js.map +1 -1
- package/dist/simulation/deathrattle-orchestration.js +1 -2
- package/dist/simulation/deathrattle-orchestration.js.map +1 -1
- package/dist/simulation/deathrattle-spawns.d.ts +1 -1
- package/dist/simulation/deathrattle-spawns.js +320 -9
- package/dist/simulation/deathrattle-spawns.js.map +1 -1
- package/dist/simulation/start-of-combat/soc-minion.js +10 -6
- package/dist/simulation/start-of-combat/soc-minion.js.map +1 -1
- package/package.json +1 -1
|
@@ -10,10 +10,11 @@ exports.FirescaleHoarder = {
|
|
|
10
10
|
(0, cards_in_hand_1.addCardsInHand)(input.hero, input.board, cardsToAdd, input.gameState);
|
|
11
11
|
return true;
|
|
12
12
|
},
|
|
13
|
-
|
|
13
|
+
deathrattleSpawn: (minion, input) => {
|
|
14
14
|
const mult = minion.cardId === "BG32_820_G" ? 2 : 1;
|
|
15
15
|
const cardsToAdd = Array(mult).fill("BG28_168");
|
|
16
16
|
(0, cards_in_hand_1.addCardsInHand)(input.boardWithDeadEntityHero, input.boardWithDeadEntity, cardsToAdd, input.gameState);
|
|
17
|
+
return [];
|
|
17
18
|
},
|
|
18
19
|
};
|
|
19
20
|
//# sourceMappingURL=firescale-hoarder.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"firescale-hoarder.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/firescale-hoarder.ts"],"names":[],"mappings":";;;AAGA,qEAAmE;AAItD,QAAA,gBAAgB,
|
|
1
|
+
{"version":3,"file":"firescale-hoarder.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/firescale-hoarder.ts"],"names":[],"mappings":";;;AAGA,qEAAmE;AAItD,QAAA,gBAAgB,GAAyC;IACrE,OAAO,EAAE,0BAAwE;IACjF,SAAS,EAAE,CAAC,MAAmB,EAAE,KAAqB,EAAE,EAAE;QACzD,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,iBAAwC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC3E,MAAM,UAAU,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,YAA4B,CAAC;QAChE,IAAA,8BAAc,EAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;QACrE,OAAO,IAAI,CAAC;IACb,CAAC;IACD,gBAAgB,EAAE,CAAC,MAAmB,EAAE,KAAgC,EAAE,EAAE;QAC3E,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,iBAAwC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC3E,MAAM,UAAU,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,YAA4B,CAAC;QAChE,IAAA,8BAAc,EAAC,KAAK,CAAC,uBAAuB,EAAE,KAAK,CAAC,mBAAmB,EAAE,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;QACtG,OAAO,EAAE,CAAC;IACX,CAAC;CACD,CAAC","sourcesContent":["import { CardIds } from '@firestone-hs/reference-data';\r\nimport { BoardEntity } from '../../../board-entity';\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 FirescaleHoarder: BattlecryCard & DeathrattleSpawnCard = {\r\n\tcardIds: [CardIds.FirescaleHoarder_BG32_820, CardIds.FirescaleHoarder_BG32_820_G],\r\n\tbattlecry: (minion: BoardEntity, input: BattlecryInput) => {\r\n\t\tconst mult = minion.cardId === CardIds.FirescaleHoarder_BG32_820_G ? 2 : 1;\r\n\t\tconst cardsToAdd = Array(mult).fill(CardIds.ShinyRing_BG28_168);\r\n\t\taddCardsInHand(input.hero, input.board, cardsToAdd, input.gameState);\r\n\t\treturn true;\r\n\t},\r\n\tdeathrattleSpawn: (minion: BoardEntity, input: DeathrattleTriggeredInput) => {\r\n\t\tconst mult = minion.cardId === CardIds.FirescaleHoarder_BG32_820_G ? 2 : 1;\r\n\t\tconst cardsToAdd = Array(mult).fill(CardIds.ShinyRing_BG28_168);\r\n\t\taddCardsInHand(input.boardWithDeadEntityHero, input.boardWithDeadEntity, cardsToAdd, input.gameState);\r\n\t\treturn [];\r\n\t},\r\n};\r\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { BattlecryCard,
|
|
2
|
-
export declare const GentleDjinni: BattlecryCard &
|
|
1
|
+
import { BattlecryCard, DeathrattleSpawnCard } from '../../card.interface';
|
|
2
|
+
export declare const GentleDjinni: BattlecryCard & DeathrattleSpawnCard;
|
|
@@ -14,13 +14,14 @@ exports.GentleDjinni = {
|
|
|
14
14
|
(0, cards_in_hand_1.addCardsInHand)(input.hero, input.board, cards, input.gameState);
|
|
15
15
|
return true;
|
|
16
16
|
},
|
|
17
|
-
|
|
17
|
+
deathrattleSpawn: (minion, input) => {
|
|
18
18
|
const cards = [];
|
|
19
19
|
const numberOfCards = minion.cardId === "TB_BaconUps_165" ? 2 : 1;
|
|
20
20
|
for (let i = 0; i < numberOfCards; i++) {
|
|
21
21
|
cards.push((0, utils_1.pickRandom)(input.gameState.cardsData.gentleDjinniSpawns));
|
|
22
22
|
}
|
|
23
23
|
(0, cards_in_hand_1.addCardsInHand)(input.boardWithDeadEntityHero, input.boardWithDeadEntity, cards, input.gameState);
|
|
24
|
+
return [];
|
|
24
25
|
},
|
|
25
26
|
};
|
|
26
27
|
//# sourceMappingURL=gentle-djinni.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gentle-djinni.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/gentle-djinni.ts"],"names":[],"mappings":";;;AAEA,mDAAqD;AAErD,qEAAmE;AAItD,QAAA,YAAY,
|
|
1
|
+
{"version":3,"file":"gentle-djinni.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/gentle-djinni.ts"],"names":[],"mappings":";;;AAEA,mDAAqD;AAErD,qEAAmE;AAItD,QAAA,YAAY,GAAyC;IACjE,OAAO,EAAE,8BAAoE;IAC7E,SAAS,EAAE,CAAC,MAAmB,EAAE,KAAqB,EAAE,EAAE;QACzD,MAAM,KAAK,GAAG,EAAE,CAAC;QACjB,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,sBAAyC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACrF,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,aAAa,EAAE,CAAC,EAAE,EAAE;YACvC,KAAK,CAAC,IAAI,CAAC,IAAA,kBAAU,EAAC,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC,CAAC;SACrE;QACD,IAAA,8BAAc,EAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;QAChE,OAAO,IAAI,CAAC;IACb,CAAC;IACD,gBAAgB,EAAE,CAAC,MAAmB,EAAE,KAAgC,EAAE,EAAE;QAC3E,MAAM,KAAK,GAAG,EAAE,CAAC;QACjB,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,sBAAyC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACrF,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,aAAa,EAAE,CAAC,EAAE,EAAE;YACvC,KAAK,CAAC,IAAI,CAAC,IAAA,kBAAU,EAAC,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC,CAAC;SACrE;QACD,IAAA,8BAAc,EAAC,KAAK,CAAC,uBAAuB,EAAE,KAAK,CAAC,mBAAmB,EAAE,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;QACjG,OAAO,EAAE,CAAC;IACX,CAAC;CACD,CAAC","sourcesContent":["import { CardIds } from '@firestone-hs/reference-data';\r\nimport { BoardEntity } from '../../../board-entity';\r\nimport { pickRandom } from '../../../services/utils';\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 GentleDjinni: BattlecryCard & DeathrattleSpawnCard = {\r\n\tcardIds: [CardIds.GentleDjinni_BGS_121, CardIds.GentleDjinni_TB_BaconUps_165],\r\n\tbattlecry: (minion: BoardEntity, input: BattlecryInput) => {\r\n\t\tconst cards = [];\r\n\t\tconst numberOfCards = minion.cardId === CardIds.GentleDjinni_TB_BaconUps_165 ? 2 : 1;\r\n\t\tfor (let i = 0; i < numberOfCards; i++) {\r\n\t\t\tcards.push(pickRandom(input.gameState.cardsData.gentleDjinniSpawns));\r\n\t\t}\r\n\t\taddCardsInHand(input.hero, input.board, cards, input.gameState);\r\n\t\treturn true;\r\n\t},\r\n\tdeathrattleSpawn: (minion: BoardEntity, input: DeathrattleTriggeredInput) => {\r\n\t\tconst cards = [];\r\n\t\tconst numberOfCards = minion.cardId === CardIds.GentleDjinni_TB_BaconUps_165 ? 2 : 1;\r\n\t\tfor (let i = 0; i < numberOfCards; i++) {\r\n\t\t\tcards.push(pickRandom(input.gameState.cardsData.gentleDjinniSpawns));\r\n\t\t}\r\n\t\taddCardsInHand(input.boardWithDeadEntityHero, input.boardWithDeadEntity, cards, input.gameState);\r\n\t\treturn [];\r\n\t},\r\n};\r\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const GlowingCinder:
|
|
1
|
+
import { DeathrattleSpawnCard } from '../../card.interface';
|
|
2
|
+
export declare const GlowingCinder: DeathrattleSpawnCard;
|
|
@@ -3,9 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.GlowingCinder = void 0;
|
|
4
4
|
exports.GlowingCinder = {
|
|
5
5
|
cardIds: ["BG32_842", "BG32_842_G"],
|
|
6
|
-
|
|
6
|
+
deathrattleSpawn: (minion, input) => {
|
|
7
7
|
const mult = minion.cardId === "BG32_842_G" ? 2 : 1;
|
|
8
8
|
input.boardWithDeadEntityHero.globalInfo.ElementalAttackBuff += 1 * mult;
|
|
9
|
+
return [];
|
|
9
10
|
},
|
|
10
11
|
};
|
|
11
12
|
//# sourceMappingURL=glowing-cinder.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"glowing-cinder.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/glowing-cinder.ts"],"names":[],"mappings":";;;AAKa,QAAA,aAAa,
|
|
1
|
+
{"version":3,"file":"glowing-cinder.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/glowing-cinder.ts"],"names":[],"mappings":";;;AAKa,QAAA,aAAa,GAAyB;IAClD,OAAO,EAAE,0BAAkE;IAC3E,gBAAgB,EAAE,CAAC,MAAmB,EAAE,KAAgC,EAAE,EAAE;QAC3E,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,iBAAqC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACxE,KAAK,CAAC,uBAAuB,CAAC,UAAU,CAAC,mBAAmB,IAAI,CAAC,GAAG,IAAI,CAAC;QACzE,OAAO,EAAE,CAAC;IACX,CAAC;CACD,CAAC","sourcesContent":["import { CardIds } from '@firestone-hs/reference-data';\r\nimport { BoardEntity } from '../../../board-entity';\r\nimport { DeathrattleTriggeredInput } from '../../../simulation/deathrattle-on-trigger';\r\nimport { DeathrattleSpawnCard } from '../../card.interface';\r\n\r\nexport const GlowingCinder: DeathrattleSpawnCard = {\r\n\tcardIds: [CardIds.GlowingCinder_BG32_842, CardIds.GlowingCinder_BG32_842_G],\r\n\tdeathrattleSpawn: (minion: BoardEntity, input: DeathrattleTriggeredInput) => {\r\n\t\tconst mult = minion.cardId === CardIds.GlowingCinder_BG32_842_G ? 2 : 1;\r\n\t\tinput.boardWithDeadEntityHero.globalInfo.ElementalAttackBuff += 1 * mult;\r\n\t\treturn [];\r\n\t},\r\n};\r\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const GoldrinnTheGreatWolf:
|
|
1
|
+
import { DeathrattleSpawnCard } from '../../card.interface';
|
|
2
|
+
export declare const GoldrinnTheGreatWolf: DeathrattleSpawnCard;
|
|
@@ -5,11 +5,12 @@ const reference_data_1 = require("@firestone-hs/reference-data");
|
|
|
5
5
|
const utils_1 = require("../../../utils");
|
|
6
6
|
exports.GoldrinnTheGreatWolf = {
|
|
7
7
|
cardIds: ["BGS_018", "TB_BaconUps_085"],
|
|
8
|
-
|
|
8
|
+
deathrattleSpawn: (minion, input) => {
|
|
9
9
|
const goldrinnBuff = minion.cardId === "TB_BaconUps_085" ? 8 : 4;
|
|
10
10
|
(0, utils_1.addStatsToBoard)(minion, input.boardWithDeadEntity, input.boardWithDeadEntityHero, goldrinnBuff, goldrinnBuff, input.gameState, reference_data_1.Race[reference_data_1.Race.BEAST]);
|
|
11
11
|
input.boardWithDeadEntityHero.globalInfo.GoldrinnBuffAtk += goldrinnBuff;
|
|
12
12
|
input.boardWithDeadEntityHero.globalInfo.GoldrinnBuffHealth += goldrinnBuff;
|
|
13
|
+
return [];
|
|
13
14
|
},
|
|
14
15
|
};
|
|
15
16
|
//# sourceMappingURL=goldrinn-the-great-wolf.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"goldrinn-the-great-wolf.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/goldrinn-the-great-wolf.ts"],"names":[],"mappings":";;;AAAA,iEAA6D;AAG7D,0CAAiD;AAGpC,QAAA,oBAAoB,
|
|
1
|
+
{"version":3,"file":"goldrinn-the-great-wolf.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/goldrinn-the-great-wolf.ts"],"names":[],"mappings":";;;AAAA,iEAA6D;AAG7D,0CAAiD;AAGpC,QAAA,oBAAoB,GAAyB;IACzD,OAAO,EAAE,8BAAoF;IAC7F,gBAAgB,EAAE,CAAC,MAAmB,EAAE,KAAgC,EAAE,EAAE;QAC3E,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,sBAAiD,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC5F,IAAA,uBAAe,EACd,MAAM,EACN,KAAK,CAAC,mBAAmB,EACzB,KAAK,CAAC,uBAAuB,EAC7B,YAAY,EACZ,YAAY,EACZ,KAAK,CAAC,SAAS,EACf,qBAAI,CAAC,qBAAI,CAAC,KAAK,CAAC,CAChB,CAAC;QACF,KAAK,CAAC,uBAAuB,CAAC,UAAU,CAAC,eAAe,IAAI,YAAY,CAAC;QACzE,KAAK,CAAC,uBAAuB,CAAC,UAAU,CAAC,kBAAkB,IAAI,YAAY,CAAC;QAC5E,OAAO,EAAE,CAAC;IACX,CAAC;CACD,CAAC","sourcesContent":["import { CardIds, Race } from '@firestone-hs/reference-data';\r\nimport { BoardEntity } from '../../../board-entity';\r\nimport { DeathrattleTriggeredInput } from '../../../simulation/deathrattle-on-trigger';\r\nimport { addStatsToBoard } from '../../../utils';\r\nimport { DeathrattleSpawnCard } from '../../card.interface';\r\n\r\nexport const GoldrinnTheGreatWolf: DeathrattleSpawnCard = {\r\n\tcardIds: [CardIds.GoldrinnTheGreatWolf_BGS_018, CardIds.GoldrinnTheGreatWolf_TB_BaconUps_085],\r\n\tdeathrattleSpawn: (minion: BoardEntity, input: DeathrattleTriggeredInput) => {\r\n\t\tconst goldrinnBuff = minion.cardId === CardIds.GoldrinnTheGreatWolf_TB_BaconUps_085 ? 8 : 4;\r\n\t\taddStatsToBoard(\r\n\t\t\tminion,\r\n\t\t\tinput.boardWithDeadEntity,\r\n\t\t\tinput.boardWithDeadEntityHero,\r\n\t\t\tgoldrinnBuff,\r\n\t\t\tgoldrinnBuff,\r\n\t\t\tinput.gameState,\r\n\t\t\tRace[Race.BEAST],\r\n\t\t);\r\n\t\tinput.boardWithDeadEntityHero.globalInfo.GoldrinnBuffAtk += goldrinnBuff;\r\n\t\tinput.boardWithDeadEntityHero.globalInfo.GoldrinnBuffHealth += goldrinnBuff;\r\n\t\treturn [];\r\n\t},\r\n};\r\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { BattlecryCard,
|
|
2
|
-
export declare const GormlingGourmet: BattlecryCard &
|
|
1
|
+
import { BattlecryCard, DeathrattleSpawnCard } from '../../card.interface';
|
|
2
|
+
export declare const GormlingGourmet: BattlecryCard & DeathrattleSpawnCard;
|
|
@@ -10,10 +10,11 @@ exports.GormlingGourmet = {
|
|
|
10
10
|
(0, cards_in_hand_1.addCardsInHand)(input.hero, input.board, cardsToAdd, input.gameState);
|
|
11
11
|
return true;
|
|
12
12
|
},
|
|
13
|
-
|
|
13
|
+
deathrattleSpawn: (minion, input) => {
|
|
14
14
|
const mult = minion.cardId === "BG32_336" ? 1 : 2;
|
|
15
15
|
const cardsToAdd = Array(mult).fill("BG32_337");
|
|
16
16
|
(0, cards_in_hand_1.addCardsInHand)(input.boardWithDeadEntityHero, input.boardWithDeadEntity, cardsToAdd, input.gameState);
|
|
17
|
+
return [];
|
|
17
18
|
},
|
|
18
19
|
};
|
|
19
20
|
//# sourceMappingURL=gormling-gourmet.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gormling-gourmet.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/gormling-gourmet.ts"],"names":[],"mappings":";;;AAGA,qEAAmE;AAItD,QAAA,eAAe,
|
|
1
|
+
{"version":3,"file":"gormling-gourmet.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/gormling-gourmet.ts"],"names":[],"mappings":";;;AAGA,qEAAmE;AAItD,QAAA,eAAe,GAAyC;IACpE,OAAO,EAAE,0BAAsE;IAC/E,SAAS,EAAE,CAAC,MAAmB,EAAE,KAAqB,EAAE,EAAE;QACzD,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,eAAqC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACxE,MAAM,UAAU,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,YAA8B,CAAC;QAClE,IAAA,8BAAc,EAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;QACrE,OAAO,IAAI,CAAC;IACb,CAAC;IACD,gBAAgB,EAAE,CAAC,MAAmB,EAAE,KAAgC,EAAE,EAAE;QAC3E,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,eAAqC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACxE,MAAM,UAAU,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,YAA8B,CAAC;QAClE,IAAA,8BAAc,EAAC,KAAK,CAAC,uBAAuB,EAAE,KAAK,CAAC,mBAAmB,EAAE,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;QACtG,OAAO,EAAE,CAAC;IACX,CAAC;CACD,CAAC","sourcesContent":["import { CardIds } from '@firestone-hs/reference-data';\r\nimport { BoardEntity } from '../../../board-entity';\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 GormlingGourmet: BattlecryCard & DeathrattleSpawnCard = {\r\n\tcardIds: [CardIds.GormlingGourmet_BG32_336, CardIds.GormlingGourmet_BG32_336_G],\r\n\tbattlecry: (minion: BoardEntity, input: BattlecryInput) => {\r\n\t\tconst mult = minion.cardId === CardIds.GormlingGourmet_BG32_336 ? 1 : 2;\r\n\t\tconst cardsToAdd = Array(mult).fill(CardIds.SeafoodStew_BG32_337);\r\n\t\taddCardsInHand(input.hero, input.board, cardsToAdd, input.gameState);\r\n\t\treturn true;\r\n\t},\r\n\tdeathrattleSpawn: (minion: BoardEntity, input: DeathrattleTriggeredInput) => {\r\n\t\tconst mult = minion.cardId === CardIds.GormlingGourmet_BG32_336 ? 1 : 2;\r\n\t\tconst cardsToAdd = Array(mult).fill(CardIds.SeafoodStew_BG32_337);\r\n\t\taddCardsInHand(input.boardWithDeadEntityHero, input.boardWithDeadEntity, cardsToAdd, input.gameState);\r\n\t\treturn [];\r\n\t},\r\n};\r\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const ImpulsiveTrickster:
|
|
1
|
+
import { DeathrattleSpawnCard } from '../../card.interface';
|
|
2
|
+
export declare const ImpulsiveTrickster: DeathrattleSpawnCard;
|
|
@@ -6,7 +6,7 @@ const stats_1 = require("../../../simulation/stats");
|
|
|
6
6
|
const utils_1 = require("../../../utils");
|
|
7
7
|
exports.ImpulsiveTrickster = {
|
|
8
8
|
cardIds: ["BG21_006", "BG21_006_G"],
|
|
9
|
-
|
|
9
|
+
deathrattleSpawn: (minion, input) => {
|
|
10
10
|
var _a;
|
|
11
11
|
const tricksterMultiplier = minion.cardId === "BG21_006_G" ? 2 : 1;
|
|
12
12
|
const hasImpulsivePortrait = (_a = input.boardWithDeadEntityHero.trinkets) === null || _a === void 0 ? void 0 : _a.some((t) => t.cardId === "BG32_MagicItem_820");
|
|
@@ -21,6 +21,7 @@ exports.ImpulsiveTrickster = {
|
|
|
21
21
|
(0, utils_1.grantRandomHealth)(minion, input.boardWithDeadEntity, input.boardWithDeadEntityHero, minion.maxHealth, input.gameState, true);
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
+
return [];
|
|
24
25
|
},
|
|
25
26
|
};
|
|
26
27
|
//# sourceMappingURL=impulsive-trickster.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"impulsive-trickster.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/impulsive-trickster.ts"],"names":[],"mappings":";;;AAEA,uDAA2D;AAE3D,qDAAwD;AACxD,0CAAmD;AAGtC,QAAA,kBAAkB,
|
|
1
|
+
{"version":3,"file":"impulsive-trickster.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/impulsive-trickster.ts"],"names":[],"mappings":";;;AAEA,uDAA2D;AAE3D,qDAAwD;AACxD,0CAAmD;AAGtC,QAAA,kBAAkB,GAAyB;IACvD,OAAO,EAAE,0BAA4E;IACrF,gBAAgB,EAAE,CAAC,MAAmB,EAAE,KAAgC,EAAE,EAAE;;QAC3E,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,iBAA0C,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC5F,MAAM,oBAAoB,GAAG,MAAA,KAAK,CAAC,uBAAuB,CAAC,QAAQ,0CAAE,IAAI,CACxE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,yBAAiD,CAChE,CAAC;QACF,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,mBAAmB,EAAE,CAAC,EAAE,EAAE;YAC7C,IAAI,oBAAoB,EAAE;gBACzB,MAAM,UAAU,GAAG,IAAA,sBAAa,EAC/B,KAAK,CAAC,mBAAmB,EACzB,KAAK,CAAC,UAAU,EAChB,KAAK,CAAC,wBAAwB,CAC9B,CAAC;gBACF,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE;oBACnC,IAAA,mBAAW,EACV,SAAS,EACT,MAAM,EACN,CAAC,EACD,MAAM,CAAC,SAAS,EAChB,KAAK,CAAC,mBAAmB,EACzB,KAAK,CAAC,uBAAuB,EAC7B,KAAK,CAAC,SAAS,CACf,CAAC;iBACF;aACD;iBAAM;gBACN,IAAA,yBAAiB,EAChB,MAAM,EACN,KAAK,CAAC,mBAAmB,EACzB,KAAK,CAAC,uBAAuB,EAC7B,MAAM,CAAC,SAAS,EAChB,KAAK,CAAC,SAAS,EACf,IAAI,CACJ,CAAC;aACF;SACD;QACD,OAAO,EAAE,CAAC;IACX,CAAC;CACD,CAAC","sourcesContent":["import { CardIds } from '@firestone-hs/reference-data';\r\nimport { BoardEntity } from '../../../board-entity';\r\nimport { getNeighbours } from '../../../simulation/attack';\r\nimport { DeathrattleTriggeredInput } from '../../../simulation/deathrattle-on-trigger';\r\nimport { modifyStats } from '../../../simulation/stats';\r\nimport { grantRandomHealth } from '../../../utils';\r\nimport { DeathrattleSpawnCard } from '../../card.interface';\r\n\r\nexport const ImpulsiveTrickster: DeathrattleSpawnCard = {\r\n\tcardIds: [CardIds.ImpulsiveTrickster_BG21_006, CardIds.ImpulsiveTrickster_BG21_006_G],\r\n\tdeathrattleSpawn: (minion: BoardEntity, input: DeathrattleTriggeredInput) => {\r\n\t\tconst tricksterMultiplier = minion.cardId === CardIds.ImpulsiveTrickster_BG21_006_G ? 2 : 1;\r\n\t\tconst hasImpulsivePortrait = input.boardWithDeadEntityHero.trinkets?.some(\r\n\t\t\t(t) => t.cardId === CardIds.ImpulsivePortrait_BG32_MagicItem_820,\r\n\t\t);\r\n\t\tfor (let j = 0; j < tricksterMultiplier; j++) {\r\n\t\t\tif (hasImpulsivePortrait) {\r\n\t\t\t\tconst neighbours = getNeighbours(\r\n\t\t\t\t\tinput.boardWithDeadEntity,\r\n\t\t\t\t\tinput.deadEntity,\r\n\t\t\t\t\tinput.deadEntityIndexFromRight,\r\n\t\t\t\t);\r\n\t\t\t\tfor (const neighbour of neighbours) {\r\n\t\t\t\t\tmodifyStats(\r\n\t\t\t\t\t\tneighbour,\r\n\t\t\t\t\t\tminion,\r\n\t\t\t\t\t\t0,\r\n\t\t\t\t\t\tminion.maxHealth,\r\n\t\t\t\t\t\tinput.boardWithDeadEntity,\r\n\t\t\t\t\t\tinput.boardWithDeadEntityHero,\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} else {\r\n\t\t\t\tgrantRandomHealth(\r\n\t\t\t\t\tminion,\r\n\t\t\t\t\tinput.boardWithDeadEntity,\r\n\t\t\t\t\tinput.boardWithDeadEntityHero,\r\n\t\t\t\t\tminion.maxHealth,\r\n\t\t\t\t\tinput.gameState,\r\n\t\t\t\t\ttrue,\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"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const LeeroyTheReckless:
|
|
1
|
+
import { DeathrattleSpawnCard } from '../../card.interface';
|
|
2
|
+
export declare const LeeroyTheReckless: DeathrattleSpawnCard;
|
|
@@ -3,10 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.LeeroyTheReckless = void 0;
|
|
4
4
|
exports.LeeroyTheReckless = {
|
|
5
5
|
cardIds: ["BG23_318", "BG23_318_G"],
|
|
6
|
-
|
|
6
|
+
deathrattleSpawn: (minion, input) => {
|
|
7
7
|
if (minion.lastAffectedByEntity) {
|
|
8
8
|
minion.lastAffectedByEntity.definitelyDead = true;
|
|
9
9
|
}
|
|
10
|
+
return [];
|
|
10
11
|
},
|
|
11
12
|
};
|
|
12
13
|
//# sourceMappingURL=leeroy-the-reckless.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leeroy-the-reckless.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/leeroy-the-reckless.ts"],"names":[],"mappings":";;;AAKa,QAAA,iBAAiB,
|
|
1
|
+
{"version":3,"file":"leeroy-the-reckless.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/leeroy-the-reckless.ts"],"names":[],"mappings":";;;AAKa,QAAA,iBAAiB,GAAyB;IACtD,OAAO,EAAE,0BAA0E;IACnF,gBAAgB,EAAE,CAAC,MAAmB,EAAE,KAAgC,EAAE,EAAE;QAC3E,IACC,MAAM,CAAC,oBAAoB,EAI1B;YACD,MAAM,CAAC,oBAAoB,CAAC,cAAc,GAAG,IAAI,CAAC;SAClD;QACD,OAAO,EAAE,CAAC;IACX,CAAC;CACD,CAAC","sourcesContent":["import { CardIds } from '@firestone-hs/reference-data';\r\nimport { BoardEntity } from '../../../board-entity';\r\nimport { DeathrattleTriggeredInput } from '../../../simulation/deathrattle-on-trigger';\r\nimport { DeathrattleSpawnCard } from '../../card.interface';\r\n\r\nexport const LeeroyTheReckless: DeathrattleSpawnCard = {\r\n\tcardIds: [CardIds.LeeroyTheReckless_BG23_318, CardIds.LeeroyTheReckless_BG23_318_G],\r\n\tdeathrattleSpawn: (minion: BoardEntity, input: DeathrattleTriggeredInput) => {\r\n\t\tif (\r\n\t\t\tminion.lastAffectedByEntity\r\n\t\t\t// http://replays.firestoneapp.com/?reviewId=c6121cdd-5cb6-4321-807e-4ff644568a8c&turn=25&action=7\r\n\t\t\t// Update 02/05/2024: this is a bug, and friendly units should be killed\r\n\t\t\t// deadEntity.friendly !== deadEntity.lastAffectedByEntity.friendly\r\n\t\t) {\r\n\t\t\tminion.lastAffectedByEntity.definitelyDead = true;\r\n\t\t}\r\n\t\treturn [];\r\n\t},\r\n};\r\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const MetallicHunter:
|
|
1
|
+
import { DeathrattleSpawnCard } from '../../card.interface';
|
|
2
|
+
export declare const MetallicHunter: DeathrattleSpawnCard;
|
|
@@ -4,10 +4,11 @@ exports.MetallicHunter = void 0;
|
|
|
4
4
|
const cards_in_hand_1 = require("../../../simulation/cards-in-hand");
|
|
5
5
|
exports.MetallicHunter = {
|
|
6
6
|
cardIds: ["BG32_170", "BG32_170_G"],
|
|
7
|
-
|
|
7
|
+
deathrattleSpawn: (minion, input) => {
|
|
8
8
|
const mult = minion.cardId === "BG32_170_G" ? 2 : 1;
|
|
9
9
|
const cardsToAdd = Array(mult).fill("EBG_Spell_014");
|
|
10
10
|
(0, cards_in_hand_1.addCardsInHand)(input.boardWithDeadEntityHero, input.boardWithDeadEntity, cardsToAdd, input.gameState);
|
|
11
|
+
return [];
|
|
11
12
|
},
|
|
12
13
|
};
|
|
13
14
|
//# sourceMappingURL=metallic-hunter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metallic-hunter.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/metallic-hunter.ts"],"names":[],"mappings":";;;AAEA,qEAAmE;AAItD,QAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"metallic-hunter.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/metallic-hunter.ts"],"names":[],"mappings":";;;AAEA,qEAAmE;AAItD,QAAA,cAAc,GAAyB;IACnD,OAAO,EAAE,0BAAoE;IAC7E,gBAAgB,EAAE,CAAC,MAAmB,EAAE,KAAgC,EAAE,EAAE;QAC3E,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,iBAAsC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACzE,MAAM,UAAU,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,iBAAmC,CAAC;QACvE,IAAA,8BAAc,EAAC,KAAK,CAAC,uBAAuB,EAAE,KAAK,CAAC,mBAAmB,EAAE,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;QACtG,OAAO,EAAE,CAAC;IACX,CAAC;CACD,CAAC","sourcesContent":["import { CardIds } from '@firestone-hs/reference-data';\r\nimport { BoardEntity } from '../../../board-entity';\r\nimport { addCardsInHand } from '../../../simulation/cards-in-hand';\r\nimport { DeathrattleTriggeredInput } from '../../../simulation/deathrattle-on-trigger';\r\nimport { DeathrattleSpawnCard } from '../../card.interface';\r\n\r\nexport const MetallicHunter: DeathrattleSpawnCard = {\r\n\tcardIds: [CardIds.MetallicHunter_BG32_170, CardIds.MetallicHunter_BG32_170_G],\r\n\tdeathrattleSpawn: (minion: BoardEntity, input: DeathrattleTriggeredInput) => {\r\n\t\tconst mult = minion.cardId === CardIds.MetallicHunter_BG32_170_G ? 2 : 1;\r\n\t\tconst cardsToAdd = Array(mult).fill(CardIds.PointyArrow_EBG_Spell_014);\r\n\t\taddCardsInHand(input.boardWithDeadEntityHero, input.boardWithDeadEntity, cardsToAdd, input.gameState);\r\n\t\treturn [];\r\n\t},\r\n};\r\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const Mummifier:
|
|
1
|
+
import { DeathrattleSpawnCard } from '../../card.interface';
|
|
2
|
+
export declare const Mummifier: DeathrattleSpawnCard;
|
|
@@ -7,7 +7,7 @@ const utils_1 = require("../../../services/utils");
|
|
|
7
7
|
const utils_2 = require("../../../utils");
|
|
8
8
|
exports.Mummifier = {
|
|
9
9
|
cardIds: ["BG28_309", "BG28_309_G"],
|
|
10
|
-
|
|
10
|
+
deathrattleSpawn: (minion, input) => {
|
|
11
11
|
const mummifierBuff = minion.cardId === "BG28_309_G" ? 2 : 1;
|
|
12
12
|
for (let j = 0; j < mummifierBuff; j++) {
|
|
13
13
|
const targets = input.boardWithDeadEntity
|
|
@@ -20,6 +20,7 @@ exports.Mummifier = {
|
|
|
20
20
|
input.gameState.spectator.registerPowerTarget(minion, target, input.boardWithDeadEntity, input.boardWithDeadEntityHero, input.otherBoardHero);
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
+
return [];
|
|
23
24
|
},
|
|
24
25
|
};
|
|
25
26
|
//# sourceMappingURL=mummifier.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mummifier.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/mummifier.ts"],"names":[],"mappings":";;;AAAA,iEAA6D;AAE7D,qDAAwD;AACxD,mDAAqD;AAErD,0CAAiD;AAGpC,QAAA,SAAS,
|
|
1
|
+
{"version":3,"file":"mummifier.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/mummifier.ts"],"names":[],"mappings":";;;AAAA,iEAA6D;AAE7D,qDAAwD;AACxD,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,CAAC,CAAC;YACnC,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 { CardIds, Race } from '@firestone-hs/reference-data';\r\nimport { BoardEntity } from '../../../board-entity';\r\nimport { updateReborn } from '../../../keywords/reborn';\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);\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"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const MutatedLasher:
|
|
1
|
+
import { DeathrattleSpawnCard } from '../../card.interface';
|
|
2
|
+
export declare const MutatedLasher: DeathrattleSpawnCard;
|
|
@@ -6,7 +6,7 @@ const baseAttackBuff = 3;
|
|
|
6
6
|
const baseHealthBuff = 3;
|
|
7
7
|
exports.MutatedLasher = {
|
|
8
8
|
cardIds: ["BG31_852", "BG31_852_G"],
|
|
9
|
-
|
|
9
|
+
deathrattleSpawn: (minion, input) => {
|
|
10
10
|
const mult = minion.cardId === "BG31_852_G" ? 2 : 1;
|
|
11
11
|
input.boardWithDeadEntityHero.globalInfo.MutatedLasherAttackBuff += baseAttackBuff * mult;
|
|
12
12
|
input.boardWithDeadEntityHero.globalInfo.MutatedLasherHealthBuff += baseHealthBuff * mult;
|
|
@@ -15,6 +15,7 @@ exports.MutatedLasher = {
|
|
|
15
15
|
.forEach((e) => {
|
|
16
16
|
(0, stats_1.modifyStats)(e, minion, baseAttackBuff * mult, baseHealthBuff * mult, input.boardWithDeadEntity, input.boardWithDeadEntityHero, input.gameState);
|
|
17
17
|
});
|
|
18
|
+
return [];
|
|
18
19
|
},
|
|
19
20
|
};
|
|
20
21
|
//# sourceMappingURL=mutated-lasher.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mutated-lasher.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/mutated-lasher.ts"],"names":[],"mappings":";;;AAGA,qDAAwD;AAGxD,MAAM,cAAc,GAAG,CAAC,CAAC;AACzB,MAAM,cAAc,GAAG,CAAC,CAAC;AAEZ,QAAA,aAAa,
|
|
1
|
+
{"version":3,"file":"mutated-lasher.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/mutated-lasher.ts"],"names":[],"mappings":";;;AAGA,qDAAwD;AAGxD,MAAM,cAAc,GAAG,CAAC,CAAC;AACzB,MAAM,cAAc,GAAG,CAAC,CAAC;AAEZ,QAAA,aAAa,GAAyB;IAClD,OAAO,EAAE,0BAAkE;IAC3E,gBAAgB,EAAE,CAAC,MAAmB,EAAE,KAAgC,EAAE,EAAE;QAC3E,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,iBAAqC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACxE,KAAK,CAAC,uBAAuB,CAAC,UAAU,CAAC,uBAAuB,IAAI,cAAc,GAAG,IAAI,CAAC;QAC1F,KAAK,CAAC,uBAAuB,CAAC,UAAU,CAAC,uBAAuB,IAAI,cAAc,GAAG,IAAI,CAAC;QAC1F,KAAK,CAAC,mBAAmB;aACvB,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;aAC3E,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;YACd,IAAA,mBAAW,EACV,CAAC,EACD,MAAM,EACN,cAAc,GAAG,IAAI,EACrB,cAAc,GAAG,IAAI,EACrB,KAAK,CAAC,mBAAmB,EACzB,KAAK,CAAC,uBAAuB,EAC7B,KAAK,CAAC,SAAS,CACf,CAAC;QACH,CAAC,CAAC,CAAC;QACJ,OAAO,EAAE,CAAC;IACX,CAAC;CACD,CAAC","sourcesContent":["import { CardIds } from '@firestone-hs/reference-data';\r\nimport { BoardEntity } from '../../../board-entity';\r\nimport { DeathrattleTriggeredInput } from '../../../simulation/deathrattle-on-trigger';\r\nimport { modifyStats } from '../../../simulation/stats';\r\nimport { DeathrattleSpawnCard } from '../../card.interface';\r\n\r\nconst baseAttackBuff = 3;\r\nconst baseHealthBuff = 3;\r\n\r\nexport const MutatedLasher: DeathrattleSpawnCard = {\r\n\tcardIds: [CardIds.MutatedLasher_BG31_852, CardIds.MutatedLasher_BG31_852_G],\r\n\tdeathrattleSpawn: (minion: BoardEntity, input: DeathrattleTriggeredInput) => {\r\n\t\tconst mult = minion.cardId === CardIds.MutatedLasher_BG31_852_G ? 2 : 1;\r\n\t\tinput.boardWithDeadEntityHero.globalInfo.MutatedLasherAttackBuff += baseAttackBuff * mult;\r\n\t\tinput.boardWithDeadEntityHero.globalInfo.MutatedLasherHealthBuff += baseHealthBuff * mult;\r\n\t\tinput.boardWithDeadEntity\r\n\t\t\t.filter((e) => input.gameState.cardsData.getTavernLevel(e.cardId) % 2 === 1)\r\n\t\t\t.forEach((e) => {\r\n\t\t\t\tmodifyStats(\r\n\t\t\t\t\te,\r\n\t\t\t\t\tminion,\r\n\t\t\t\t\tbaseAttackBuff * mult,\r\n\t\t\t\t\tbaseHealthBuff * mult,\r\n\t\t\t\t\tinput.boardWithDeadEntity,\r\n\t\t\t\t\tinput.boardWithDeadEntityHero,\r\n\t\t\t\t\tinput.gameState,\r\n\t\t\t\t);\r\n\t\t\t});\r\n\t\treturn [];\r\n\t},\r\n};\r\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { BattlecryCard,
|
|
2
|
-
export declare const NightmareParTeaGuest: BattlecryCard &
|
|
1
|
+
import { BattlecryCard, DeathrattleSpawnCard } from '../../card.interface';
|
|
2
|
+
export declare const NightmareParTeaGuest: BattlecryCard & DeathrattleSpawnCard;
|
|
@@ -10,10 +10,11 @@ exports.NightmareParTeaGuest = {
|
|
|
10
10
|
(0, cards_in_hand_1.addCardsInHand)(input.hero, input.board, cardsToAdd, input.gameState);
|
|
11
11
|
return true;
|
|
12
12
|
},
|
|
13
|
-
|
|
13
|
+
deathrattleSpawn: (minion, input) => {
|
|
14
14
|
const mult = minion.cardId === "BG32_111_G" ? 2 : 1;
|
|
15
15
|
const cardsToAdd = Array(mult).fill("BG28_888");
|
|
16
16
|
(0, cards_in_hand_1.addCardsInHand)(input.boardWithDeadEntityHero, input.boardWithDeadEntity, cardsToAdd, input.gameState);
|
|
17
|
+
return [];
|
|
17
18
|
},
|
|
18
19
|
};
|
|
19
20
|
//# sourceMappingURL=nightmare-par-tea-guest.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nightmare-par-tea-guest.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/nightmare-par-tea-guest.ts"],"names":[],"mappings":";;;AAGA,qEAAmE;AAItD,QAAA,oBAAoB,
|
|
1
|
+
{"version":3,"file":"nightmare-par-tea-guest.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/nightmare-par-tea-guest.ts"],"names":[],"mappings":";;;AAGA,qEAAmE;AAItD,QAAA,oBAAoB,GAAyC;IACzE,OAAO,EAAE,0BAAgF;IACzF,SAAS,EAAE,CAAC,MAAmB,EAAE,KAAqB,EAAE,EAAE;QACzD,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,iBAA4C,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC/E,MAAM,UAAU,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,YAAkC,CAAC;QACtE,IAAA,8BAAc,EAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,EAAE,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;QACrE,OAAO,IAAI,CAAC;IACb,CAAC;IACD,gBAAgB,EAAE,CAAC,MAAmB,EAAE,KAAgC,EAAE,EAAE;QAC3E,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,iBAA4C,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC/E,MAAM,UAAU,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,YAAkC,CAAC;QACtE,IAAA,8BAAc,EAAC,KAAK,CAAC,uBAAuB,EAAE,KAAK,CAAC,mBAAmB,EAAE,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;QACtG,OAAO,EAAE,CAAC;IACX,CAAC;CACD,CAAC","sourcesContent":["import { CardIds } from '@firestone-hs/reference-data';\r\nimport { BoardEntity } from '../../../board-entity';\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 NightmareParTeaGuest: BattlecryCard & DeathrattleSpawnCard = {\r\n\tcardIds: [CardIds.NightmareParTeaGuest_BG32_111, CardIds.NightmareParTeaGuest_BG32_111_G],\r\n\tbattlecry: (minion: BoardEntity, input: BattlecryInput) => {\r\n\t\tconst mult = minion.cardId === CardIds.NightmareParTeaGuest_BG32_111_G ? 2 : 1;\r\n\t\tconst cardsToAdd = Array(mult).fill(CardIds.MisplacedTeaSet_BG28_888);\r\n\t\taddCardsInHand(input.hero, input.board, cardsToAdd, input.gameState);\r\n\t\treturn true;\r\n\t},\r\n\tdeathrattleSpawn: (minion: BoardEntity, input: DeathrattleTriggeredInput) => {\r\n\t\tconst mult = minion.cardId === CardIds.NightmareParTeaGuest_BG32_111_G ? 2 : 1;\r\n\t\tconst cardsToAdd = Array(mult).fill(CardIds.MisplacedTeaSet_BG28_888);\r\n\t\taddCardsInHand(input.boardWithDeadEntityHero, input.boardWithDeadEntity, cardsToAdd, input.gameState);\r\n\t\treturn [];\r\n\t},\r\n};\r\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const OperaticBelcher:
|
|
1
|
+
import { DeathrattleSpawnCard } from '../../card.interface';
|
|
2
|
+
export declare const OperaticBelcher: DeathrattleSpawnCard;
|
|
@@ -7,7 +7,7 @@ const utils_1 = require("../../../services/utils");
|
|
|
7
7
|
const utils_2 = require("../../../utils");
|
|
8
8
|
exports.OperaticBelcher = {
|
|
9
9
|
cardIds: ["BG26_888", "BG26_888_G"],
|
|
10
|
-
|
|
10
|
+
deathrattleSpawn: (minion, input) => {
|
|
11
11
|
const belcherMultiplier = minion.cardId === "BG26_888_G" ? 2 : 1;
|
|
12
12
|
for (let j = 0; j < belcherMultiplier; j++) {
|
|
13
13
|
const possibleBelcherTargets = input.boardWithDeadEntity
|
|
@@ -21,6 +21,7 @@ exports.OperaticBelcher = {
|
|
|
21
21
|
input.gameState.spectator.registerPowerTarget(minion, chosen, input.boardWithDeadEntity, input.boardWithDeadEntityHero, input.otherBoardHero);
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
+
return [];
|
|
24
25
|
},
|
|
25
26
|
};
|
|
26
27
|
//# sourceMappingURL=operatic-belcher.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operatic-belcher.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/operatic-belcher.ts"],"names":[],"mappings":";;;AAAA,iEAA6D;AAE7D,yDAA4D;AAC5D,mDAAqD;AAErD,0CAAiD;AAGpC,QAAA,eAAe,
|
|
1
|
+
{"version":3,"file":"operatic-belcher.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/operatic-belcher.ts"],"names":[],"mappings":";;;AAAA,iEAA6D;AAE7D,yDAA4D;AAC5D,mDAAqD;AAErD,0CAAiD;AAGpC,QAAA,eAAe,GAAyB;IACpD,OAAO,EAAE,0BAAsE;IAC/E,gBAAgB,EAAE,CAAC,MAAmB,EAAE,KAAgC,EAAE,EAAE;QAC3E,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,iBAAuC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACvF,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,iBAAiB,EAAE,CAAC,EAAE,EAAE;YAC3C,MAAM,sBAAsB,GAAG,KAAK,CAAC,mBAAmB;iBACtD,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;iBACpC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC;iBACrC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC;iBAC/D,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAClB,IAAA,uBAAe,EACd,MAAM,EACN,KAAK,CAAC,uBAAuB,EAC7B,qBAAI,CAAC,MAAM,EACX,KAAK,CAAC,SAAS,CAAC,SAAS,EACzB,KAAK,CAAC,SAAS,CAAC,QAAQ,CACxB,CACD,CAAC;YACH,IAAI,sBAAsB,CAAC,MAAM,GAAG,CAAC,EAAE;gBACtC,MAAM,MAAM,GAAG,IAAA,kBAAU,EAAC,sBAAsB,CAAC,CAAC;gBAClD,IAAA,yBAAc,EACb,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 { CardIds, Race } from '@firestone-hs/reference-data';\r\nimport { BoardEntity } from '../../../board-entity';\r\nimport { updateVenomous } from '../../../keywords/venomous';\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 OperaticBelcher: DeathrattleSpawnCard = {\r\n\tcardIds: [CardIds.OperaticBelcher_BG26_888, CardIds.OperaticBelcher_BG26_888_G],\r\n\tdeathrattleSpawn: (minion: BoardEntity, input: DeathrattleTriggeredInput) => {\r\n\t\tconst belcherMultiplier = minion.cardId === CardIds.OperaticBelcher_BG26_888_G ? 2 : 1;\r\n\t\tfor (let j = 0; j < belcherMultiplier; j++) {\r\n\t\t\tconst possibleBelcherTargets = input.boardWithDeadEntity\r\n\t\t\t\t.filter((entity) => !entity.venomous)\r\n\t\t\t\t.filter((entity) => !entity.poisonous)\r\n\t\t\t\t.filter((entity) => entity.health > 0 && !entity.definitelyDead)\r\n\t\t\t\t.filter((entity) =>\r\n\t\t\t\t\thasCorrectTribe(\r\n\t\t\t\t\t\tentity,\r\n\t\t\t\t\t\tinput.boardWithDeadEntityHero,\r\n\t\t\t\t\t\tRace.MURLOC,\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\tif (possibleBelcherTargets.length > 0) {\r\n\t\t\t\tconst chosen = pickRandom(possibleBelcherTargets);\r\n\t\t\t\tupdateVenomous(\r\n\t\t\t\t\tchosen,\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\tchosen,\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"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const RylakMetalhead:
|
|
1
|
+
import { DeathrattleSpawnCard } from '../../card.interface';
|
|
2
|
+
export declare const RylakMetalhead: DeathrattleSpawnCard;
|
|
@@ -8,7 +8,7 @@ const battlecries_1 = require("../../../simulation/battlecries");
|
|
|
8
8
|
const utils_2 = require("../../../utils");
|
|
9
9
|
exports.RylakMetalhead = {
|
|
10
10
|
cardIds: ["BG26_801", "BG26_801_G"],
|
|
11
|
-
|
|
11
|
+
deathrattleSpawn: (minion, input) => {
|
|
12
12
|
const debug = (0, attack_1.getNeighbours)(input.boardWithDeadEntity, minion, input.deadEntityIndexFromRight).map((e) => input.gameState.allCards.getCard(e.cardId).name);
|
|
13
13
|
const allNeighbours = (0, attack_1.getNeighbours)(input.boardWithDeadEntity, minion, input.deadEntityIndexFromRight).filter((e) => (0, utils_2.hasMechanic)(input.gameState.allCards.getCard(e.cardId), reference_data_1.GameTag[reference_data_1.GameTag.BATTLECRY]));
|
|
14
14
|
const neighbours = minion.cardId === "BG26_801_G"
|
|
@@ -18,6 +18,7 @@ exports.RylakMetalhead = {
|
|
|
18
18
|
input.gameState.spectator.registerPowerTarget(minion, neighbour, input.boardWithDeadEntity, input.boardWithDeadEntityHero, input.otherBoardHero);
|
|
19
19
|
(0, battlecries_1.triggerBattlecry)(input.boardWithDeadEntity, input.boardWithDeadEntityHero, neighbour, input.otherBoard, input.otherBoardHero, input.gameState);
|
|
20
20
|
}
|
|
21
|
+
return [];
|
|
21
22
|
},
|
|
22
23
|
};
|
|
23
24
|
//# sourceMappingURL=rylak-metalhead.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rylak-metalhead.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/rylak-metalhead.ts"],"names":[],"mappings":";;;AAAA,iEAAgE;AAEhE,mDAAqD;AACrD,uDAA2D;AAC3D,iEAAmE;AAEnE,0CAA6C;AAGhC,QAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"rylak-metalhead.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/rylak-metalhead.ts"],"names":[],"mappings":";;;AAAA,iEAAgE;AAEhE,mDAAqD;AACrD,uDAA2D;AAC3D,iEAAmE;AAEnE,0CAA6C;AAGhC,QAAA,cAAc,GAAyB;IACnD,OAAO,EAAE,0BAAoE;IAC7E,gBAAgB,EAAE,CAAC,MAAmB,EAAE,KAAgC,EAAE,EAAE;QAC3E,MAAM,KAAK,GAAG,IAAA,sBAAa,EAAC,KAAK,CAAC,mBAAmB,EAAE,MAAM,EAAE,KAAK,CAAC,wBAAwB,CAAC,CAAC,GAAG,CACjG,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CACtD,CAAC;QACF,MAAM,aAAa,GAAG,IAAA,sBAAa,EAAC,KAAK,CAAC,mBAAmB,EAAE,MAAM,EAAE,KAAK,CAAC,wBAAwB,CAAC,CAAC,MAAM,CAC5G,CAAC,CAAC,EAAE,EAAE,CAAC,IAAA,mBAAW,EAAC,KAAK,CAAC,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,wBAAO,CAAC,wBAAO,CAAC,SAAS,CAAC,CAAC,CAC1F,CAAC;QACF,MAAM,UAAU,GACf,MAAM,CAAC,MAAM,iBAAsC;YAClD,CAAC,CAAC,aAAa;YACf,CAAC,CAAC,CAAC,IAAA,kBAAU,EAAC,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACnD,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE;YACnC,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC,mBAAmB,CAC5C,MAAM,EACN,SAAS,EACT,KAAK,CAAC,mBAAmB,EACzB,KAAK,CAAC,uBAAuB,EAC7B,KAAK,CAAC,cAAc,CACpB,CAAC;YACF,IAAA,8BAAgB,EACf,KAAK,CAAC,mBAAmB,EACzB,KAAK,CAAC,uBAAuB,EAC7B,SAAS,EACT,KAAK,CAAC,UAAU,EAChB,KAAK,CAAC,cAAc,EACpB,KAAK,CAAC,SAAS,CACf,CAAC;SACF;QACD,OAAO,EAAE,CAAC;IACX,CAAC;CACD,CAAC","sourcesContent":["import { CardIds, GameTag } from '@firestone-hs/reference-data';\r\nimport { BoardEntity } from '../../../board-entity';\r\nimport { pickRandom } from '../../../services/utils';\r\nimport { getNeighbours } from '../../../simulation/attack';\r\nimport { triggerBattlecry } from '../../../simulation/battlecries';\r\nimport { DeathrattleTriggeredInput } from '../../../simulation/deathrattle-on-trigger';\r\nimport { hasMechanic } from '../../../utils';\r\nimport { DeathrattleSpawnCard } from '../../card.interface';\r\n\r\nexport const RylakMetalhead: DeathrattleSpawnCard = {\r\n\tcardIds: [CardIds.RylakMetalhead_BG26_801, CardIds.RylakMetalhead_BG26_801_G],\r\n\tdeathrattleSpawn: (minion: BoardEntity, input: DeathrattleTriggeredInput) => {\r\n\t\tconst debug = getNeighbours(input.boardWithDeadEntity, minion, input.deadEntityIndexFromRight).map(\r\n\t\t\t(e) => input.gameState.allCards.getCard(e.cardId).name,\r\n\t\t);\r\n\t\tconst allNeighbours = getNeighbours(input.boardWithDeadEntity, minion, input.deadEntityIndexFromRight).filter(\r\n\t\t\t(e) => hasMechanic(input.gameState.allCards.getCard(e.cardId), GameTag[GameTag.BATTLECRY]),\r\n\t\t);\r\n\t\tconst neighbours =\r\n\t\t\tminion.cardId === CardIds.RylakMetalhead_BG26_801_G\r\n\t\t\t\t? allNeighbours\r\n\t\t\t\t: [pickRandom(allNeighbours)].filter((e) => !!e);\r\n\t\tfor (const neighbour of neighbours) {\r\n\t\t\tinput.gameState.spectator.registerPowerTarget(\r\n\t\t\t\tminion,\r\n\t\t\t\tneighbour,\r\n\t\t\t\tinput.boardWithDeadEntity,\r\n\t\t\t\tinput.boardWithDeadEntityHero,\r\n\t\t\t\tinput.otherBoardHero,\r\n\t\t\t);\r\n\t\t\ttriggerBattlecry(\r\n\t\t\t\tinput.boardWithDeadEntity,\r\n\t\t\t\tinput.boardWithDeadEntityHero,\r\n\t\t\t\tneighbour,\r\n\t\t\t\tinput.otherBoard,\r\n\t\t\t\tinput.otherBoardHero,\r\n\t\t\t\tinput.gameState,\r\n\t\t\t);\r\n\t\t}\r\n\t\treturn [];\r\n\t},\r\n};\r\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { BattlecryCard,
|
|
2
|
-
export declare const SelflessHero: BattlecryCard &
|
|
1
|
+
import { BattlecryCard, DeathrattleSpawnCard } from '../../card.interface';
|
|
2
|
+
export declare const SelflessHero: BattlecryCard & DeathrattleSpawnCard;
|
|
@@ -15,11 +15,12 @@ exports.SelflessHero = {
|
|
|
15
15
|
}
|
|
16
16
|
return true;
|
|
17
17
|
},
|
|
18
|
-
|
|
18
|
+
deathrattleSpawn: (minion, input) => {
|
|
19
19
|
const mult = minion.cardId === "TB_BaconUps_014" ? 2 : 1;
|
|
20
20
|
for (let i = 0; i < mult; i++) {
|
|
21
21
|
(0, divine_shield_1.grantRandomDivineShield)(minion, input.boardWithDeadEntity, input.boardWithDeadEntityHero, input.otherBoardHero, input.gameState);
|
|
22
22
|
}
|
|
23
|
+
return [];
|
|
23
24
|
},
|
|
24
25
|
};
|
|
25
26
|
//# sourceMappingURL=selfless-hero.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"selfless-hero.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/selfless-hero.ts"],"names":[],"mappings":";;;AAEA,mEAA0E;AAK7D,QAAA,YAAY,
|
|
1
|
+
{"version":3,"file":"selfless-hero.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/selfless-hero.ts"],"names":[],"mappings":";;;AAEA,mEAA0E;AAK7D,QAAA,YAAY,GAAyC;IACjE,OAAO,EAAE,gCAAsE;IAC/E,SAAS,EAAE,CAAC,MAAmB,EAAE,KAAqB,EAAE,EAAE;;QACzD,IAAI,CAAC,CAAA,MAAA,KAAK,CAAC,IAAI,CAAC,QAAQ,0CAAE,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,yBAAgD,CAAC,CAAA,EAAE;YAChG,OAAO,KAAK,CAAC;SACb;QACD,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,sBAAyC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC5E,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,CAAC,EAAE,EAAE;YAC9B,IAAA,uCAAuB,EAAC,MAAM,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;SAC3F;QACD,OAAO,IAAI,CAAC;IACb,CAAC;IACD,gBAAgB,EAAE,CAAC,MAAmB,EAAE,KAAgC,EAAE,EAAE;QAC3E,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,sBAAyC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC5E,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,CAAC,EAAE,EAAE;YAC9B,IAAA,uCAAuB,EACtB,MAAM,EACN,KAAK,CAAC,mBAAmB,EACzB,KAAK,CAAC,uBAAuB,EAC7B,KAAK,CAAC,cAAc,EACpB,KAAK,CAAC,SAAS,CACf,CAAC;SACF;QACD,OAAO,EAAE,CAAC;IACX,CAAC;CACD,CAAC","sourcesContent":["import { CardIds } from '@firestone-hs/reference-data';\r\nimport { BoardEntity } from '../../../board-entity';\r\nimport { grantRandomDivineShield } from '../../../keywords/divine-shield';\r\nimport { BattlecryInput } from '../../../simulation/battlecries';\r\nimport { DeathrattleTriggeredInput } from '../../../simulation/deathrattle-on-trigger';\r\nimport { BattlecryCard, DeathrattleSpawnCard } from '../../card.interface';\r\n\r\nexport const SelflessHero: BattlecryCard & DeathrattleSpawnCard = {\r\n\tcardIds: [CardIds.SelflessHero_BG_OG_221, CardIds.SelflessHero_TB_BaconUps_014],\r\n\tbattlecry: (minion: BoardEntity, input: BattlecryInput) => {\r\n\t\tif (!input.hero.trinkets?.some((t) => t.cardId === CardIds.SelflessPortrait_BG32_MagicItem_804)) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tconst mult = minion.cardId === CardIds.SelflessHero_TB_BaconUps_014 ? 2 : 1;\r\n\t\tfor (let i = 0; i < mult; i++) {\r\n\t\t\tgrantRandomDivineShield(minion, input.board, input.hero, input.otherHero, input.gameState);\r\n\t\t}\r\n\t\treturn true;\r\n\t},\r\n\tdeathrattleSpawn: (minion: BoardEntity, input: DeathrattleTriggeredInput) => {\r\n\t\tconst mult = minion.cardId === CardIds.SelflessHero_TB_BaconUps_014 ? 2 : 1;\r\n\t\tfor (let i = 0; i < mult; i++) {\r\n\t\t\tgrantRandomDivineShield(\r\n\t\t\t\tminion,\r\n\t\t\t\tinput.boardWithDeadEntity,\r\n\t\t\t\tinput.boardWithDeadEntityHero,\r\n\t\t\t\tinput.otherBoardHero,\r\n\t\t\t\tinput.gameState,\r\n\t\t\t);\r\n\t\t}\r\n\t\treturn [];\r\n\t},\r\n};\r\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const Shadowdancer:
|
|
1
|
+
import { DeathrattleSpawnCard } from '../../card.interface';
|
|
2
|
+
export declare const Shadowdancer: DeathrattleSpawnCard;
|
|
@@ -4,10 +4,11 @@ exports.Shadowdancer = void 0;
|
|
|
4
4
|
const cards_in_hand_1 = require("../../../simulation/cards-in-hand");
|
|
5
5
|
exports.Shadowdancer = {
|
|
6
6
|
cardIds: ["BG32_891", "BG32_891_G"],
|
|
7
|
-
|
|
7
|
+
deathrattleSpawn: (minion, input) => {
|
|
8
8
|
const mult = minion.cardId === "BG32_891_G" ? 2 : 1;
|
|
9
9
|
const cardsToAdd = Array(mult).fill("BG28_886");
|
|
10
10
|
(0, cards_in_hand_1.addCardsInHand)(input.boardWithDeadEntityHero, input.boardWithDeadEntity, cardsToAdd, input.gameState);
|
|
11
|
+
return [];
|
|
11
12
|
},
|
|
12
13
|
};
|
|
13
14
|
//# sourceMappingURL=shadowdancer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shadowdancer.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/shadowdancer.ts"],"names":[],"mappings":";;;AAEA,qEAAmE;AAItD,QAAA,YAAY,
|
|
1
|
+
{"version":3,"file":"shadowdancer.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/shadowdancer.ts"],"names":[],"mappings":";;;AAEA,qEAAmE;AAItD,QAAA,YAAY,GAAyB;IACjD,OAAO,EAAE,0BAAgE;IACzE,gBAAgB,EAAE,CAAC,MAAmB,EAAE,KAAgC,EAAE,EAAE;QAC3E,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,iBAAoC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACvE,MAAM,UAAU,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,YAAoC,CAAC;QACxE,IAAA,8BAAc,EAAC,KAAK,CAAC,uBAAuB,EAAE,KAAK,CAAC,mBAAmB,EAAE,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;QACtG,OAAO,EAAE,CAAC;IACX,CAAC;CACD,CAAC","sourcesContent":["import { CardIds } from '@firestone-hs/reference-data';\r\nimport { BoardEntity } from '../../../board-entity';\r\nimport { addCardsInHand } from '../../../simulation/cards-in-hand';\r\nimport { DeathrattleTriggeredInput } from '../../../simulation/deathrattle-on-trigger';\r\nimport { DeathrattleSpawnCard } from '../../card.interface';\r\n\r\nexport const Shadowdancer: DeathrattleSpawnCard = {\r\n\tcardIds: [CardIds.Shadowdancer_BG32_891, CardIds.Shadowdancer_BG32_891_G],\r\n\tdeathrattleSpawn: (minion: BoardEntity, input: DeathrattleTriggeredInput) => {\r\n\t\tconst mult = minion.cardId === CardIds.Shadowdancer_BG32_891_G ? 2 : 1;\r\n\t\tconst cardsToAdd = Array(mult).fill(CardIds.StaffOfEnrichment_BG28_886);\r\n\t\taddCardsInHand(input.boardWithDeadEntityHero, input.boardWithDeadEntity, cardsToAdd, input.gameState);\r\n\t\treturn [];\r\n\t},\r\n};\r\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const SharptoothSnapper:
|
|
1
|
+
import { StartOfCombatCard } from '../../card.interface';
|
|
2
|
+
export declare const SharptoothSnapper: StartOfCombatCard;
|
|
@@ -3,6 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.SharptoothSnapper = void 0;
|
|
4
4
|
exports.SharptoothSnapper = {
|
|
5
5
|
cardIds: ["BG32_201", "BG32_201_G"],
|
|
6
|
-
|
|
6
|
+
startOfCombatTiming: 'start-of-combat',
|
|
7
|
+
startOfCombat: (minion, input) => {
|
|
8
|
+
minion.scriptDataNum1 = minion.cardId === "BG32_201_G" ? 2 : 1;
|
|
9
|
+
return { hasTriggered: false, shouldRecomputeCurrentAttacker: false };
|
|
10
|
+
},
|
|
7
11
|
};
|
|
8
12
|
//# sourceMappingURL=sharptooth-snapper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sharptooth-snapper.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/sharptooth-snapper.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"sharptooth-snapper.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/sharptooth-snapper.ts"],"names":[],"mappings":";;;AAMa,QAAA,iBAAiB,GAAsB;IACnD,OAAO,EAAE,0BAA0E;IACnF,mBAAmB,EAAE,iBAAiB;IACtC,aAAa,EAAE,CACd,MAAmB,EACnB,KAAe,EACsD,EAAE;QACvE,MAAM,CAAC,cAAc,GAAG,MAAM,CAAC,MAAM,iBAAyC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACvF,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,8BAA8B,EAAE,KAAK,EAAE,CAAC;IACvE,CAAC;CACD,CAAC","sourcesContent":["import { CardIds } from '@firestone-hs/reference-data';\r\nimport { BoardEntity } from '../../../board-entity';\r\nimport { SoCInput } from '../../../simulation/start-of-combat/start-of-combat-input';\r\nimport { StartOfCombatCard } from '../../card.interface';\r\n\r\n// Use this instead of DefaultScriptDataNumCard so that it doesn't trigger before the Start of Combat minions phase\r\nexport const SharptoothSnapper: StartOfCombatCard = {\r\n\tcardIds: [CardIds.SharptoothSnapper_BG32_201, CardIds.SharptoothSnapper_BG32_201_G],\r\n\tstartOfCombatTiming: 'start-of-combat',\r\n\tstartOfCombat: (\r\n\t\tminion: BoardEntity,\r\n\t\tinput: SoCInput,\r\n\t): { hasTriggered: boolean; shouldRecomputeCurrentAttacker: boolean } => {\r\n\t\tminion.scriptDataNum1 = minion.cardId === CardIds.SharptoothSnapper_BG32_201_G ? 2 : 1;\r\n\t\treturn { hasTriggered: false, shouldRecomputeCurrentAttacker: false };\r\n\t},\r\n};\r\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const ShowyCyclist:
|
|
1
|
+
import { DeathrattleSpawnCard } from '../../card.interface';
|
|
2
|
+
export declare const ShowyCyclist: DeathrattleSpawnCard;
|