@firestone-hs/simulate-bgs-battle 1.1.526 → 1.1.527
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.
|
@@ -7,8 +7,8 @@ exports.SlyRaptor = {
|
|
|
7
7
|
cardIds: ["BG25_806", "BG25_806_G"],
|
|
8
8
|
deathrattleSpawn: (minion, input) => {
|
|
9
9
|
const raptorStat = minion.cardId === "BG25_806_G" ? 10 : 5;
|
|
10
|
-
const
|
|
11
|
-
const beastsFromRaptor = (0, deathrattle_spawns_1.simplifiedSpawnEntities)(
|
|
10
|
+
const target = input.gameState.cardsData.getRandomMinionForTribe(reference_data_1.Race.BEAST, input.boardWithDeadEntityHero.tavernTier, exports.SlyRaptor.cardIds);
|
|
11
|
+
const beastsFromRaptor = (0, deathrattle_spawns_1.simplifiedSpawnEntities)(target, 1, input);
|
|
12
12
|
beastsFromRaptor.forEach((b) => {
|
|
13
13
|
b.attack = raptorStat;
|
|
14
14
|
b.health = raptorStat;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sly-raptor.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/sly-raptor.ts"],"names":[],"mappings":";;;AAAA,iEAA6D;AAG7D,+EAAiF;AAGpE,QAAA,SAAS,GAAyB;IAC9C,OAAO,EAAE,0BAA0D;IACnE,gBAAgB,EAAE,CAAC,MAAmB,EAAE,KAAgC,EAAE,EAAE;QAC3E,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,iBAAiC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;QAC3E,MAAM,
|
|
1
|
+
{"version":3,"file":"sly-raptor.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/sly-raptor.ts"],"names":[],"mappings":";;;AAAA,iEAA6D;AAG7D,+EAAiF;AAGpE,QAAA,SAAS,GAAyB;IAC9C,OAAO,EAAE,0BAA0D;IACnE,gBAAgB,EAAE,CAAC,MAAmB,EAAE,KAAgC,EAAE,EAAE;QAC3E,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,iBAAiC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;QAC3E,MAAM,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC,SAAS,CAAC,uBAAuB,CAC/D,qBAAI,CAAC,KAAK,EACV,KAAK,CAAC,uBAAuB,CAAC,UAAU,EACxC,iBAAS,CAAC,OAAO,CACjB,CAAC;QACF,MAAM,gBAAgB,GAAG,IAAA,4CAAuB,EAAC,MAAM,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC;QACnE,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE;YAC9B,CAAC,CAAC,MAAM,GAAG,UAAU,CAAC;YACtB,CAAC,CAAC,MAAM,GAAG,UAAU,CAAC;QACvB,CAAC,CAAC,CAAC;QACH,OAAO,gBAAgB,CAAC;IACzB,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 { simplifiedSpawnEntities } from '../../../simulation/deathrattle-spawns';\r\nimport { DeathrattleSpawnCard } from '../../card.interface';\r\n\r\nexport const SlyRaptor: DeathrattleSpawnCard = {\r\n\tcardIds: [CardIds.SlyRaptor_BG25_806, CardIds.SlyRaptor_BG25_806_G],\r\n\tdeathrattleSpawn: (minion: BoardEntity, input: DeathrattleTriggeredInput) => {\r\n\t\tconst raptorStat = minion.cardId === CardIds.SlyRaptor_BG25_806_G ? 10 : 5;\r\n\t\tconst target = input.gameState.cardsData.getRandomMinionForTribe(\r\n\t\t\tRace.BEAST,\r\n\t\t\tinput.boardWithDeadEntityHero.tavernTier,\r\n\t\t\tSlyRaptor.cardIds,\r\n\t\t);\r\n\t\tconst beastsFromRaptor = simplifiedSpawnEntities(target, 1, input);\r\n\t\tbeastsFromRaptor.forEach((b) => {\r\n\t\t\tb.attack = raptorStat;\r\n\t\t\tb.health = raptorStat;\r\n\t\t});\r\n\t\treturn beastsFromRaptor;\r\n\t},\r\n};\r\n"]}
|