@firestone-hs/simulate-bgs-battle 1.1.752 → 1.1.753

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.
@@ -6,17 +6,16 @@ const stats_1 = require("../../../simulation/stats");
6
6
  exports.UnderrotSpawn = {
7
7
  cardIds: ["BG36_116", "BG36_116_G"],
8
8
  deathrattleSpawn: (minion, input) => {
9
- var _a;
10
9
  const quantity = minion.cardId === "BG36_116_G" ? 2 : 1;
11
- const atk = (_a = minion.scriptDataNum1) !== null && _a !== void 0 ? _a : quantity;
10
+ const atk = minion.scriptDataNum1 || quantity;
12
11
  const tentacleId = minion.cardId === "BG36_116_G"
13
12
  ? "BGFYM_002t_G"
14
13
  : "BGFYM_002t";
15
- const spawns = [...(0, deathrattle_spawns_1.simplifiedSpawnEntities)(tentacleId, quantity, input)];
14
+ (0, deathrattle_spawns_1.simplifiedSpawnEntitiesWithAddToBoard)(tentacleId, quantity, input, minion, input.deadEntityIndexFromRight);
16
15
  for (const target of input.boardWithDeadEntity) {
17
16
  (0, stats_1.modifyStats)(target, minion, atk, 0, input.boardWithDeadEntity, input.boardWithDeadEntityHero, input.gameState);
18
17
  }
19
- return spawns;
18
+ return [];
20
19
  },
21
20
  };
22
21
  //# sourceMappingURL=underrot-spawn.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"underrot-spawn.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/underrot-spawn.ts"],"names":[],"mappings":";;;AASA,+EAAiF;AACjF,qDAAwD;AAI3C,QAAA,aAAa,GAAyB;IAClD,OAAO,EAAE,0BAAkE;IAC3E,gBAAgB,EAAE,CAAC,MAAmB,EAAE,KAAgC,EAAE,EAAE;;QAC3E,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,iBAAqC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC5E,MAAM,GAAG,GAAG,MAAA,MAAM,CAAC,cAAc,mCAAI,QAAQ,CAAC;QAC9C,MAAM,UAAU,GACf,MAAM,CAAC,MAAM,iBAAqC;YACjD,CAAC;YACD,CAAC,aAAyC,CAAC;QAC7C,MAAM,MAAM,GAAG,CAAC,GAAG,IAAA,4CAAuB,EAAC,UAAU,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC;QACzE,KAAK,MAAM,MAAM,IAAI,KAAK,CAAC,mBAAmB,EAAE;YAC/C,IAAA,mBAAW,EAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,CAAC,mBAAmB,EAAE,KAAK,CAAC,uBAAuB,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;SAC/G;QACD,OAAO,MAAM,CAAC;IACf,CAAC;CACD,CAAC","sourcesContent":["/**\r\n * Underrot Spawn (Tier 2, 2/2)\r\n * Deathrattle: Summon a 0/2 Tentacle with Taunt. Give your minions +1 Attack.\r\n *\r\n * Golden Underrot Spawn (Tier 2, 4/4)\r\n * Deathrattle: Summon two 0/2 Tentacles with Taunt. Give your minions +2 Attack.\r\n */\r\nimport { BoardEntity } from '../../../board-entity';\r\nimport { DeathrattleTriggeredInput } from '../../../simulation/deathrattle-on-trigger';\r\nimport { simplifiedSpawnEntities } from '../../../simulation/deathrattle-spawns';\r\nimport { modifyStats } from '../../../simulation/stats';\r\nimport { CardIds } from '../../../services/card-ids';\r\nimport { DeathrattleSpawnCard } from '../../card.interface';\r\n\r\nexport const UnderrotSpawn: DeathrattleSpawnCard = {\r\n\tcardIds: [CardIds.UnderrotSpawn_BG36_116, CardIds.UnderrotSpawn_BG36_116_G],\r\n\tdeathrattleSpawn: (minion: BoardEntity, input: DeathrattleTriggeredInput) => {\r\n\t\tconst quantity = minion.cardId === CardIds.UnderrotSpawn_BG36_116_G ? 2 : 1;\r\n\t\tconst atk = minion.scriptDataNum1 ?? quantity;\r\n\t\tconst tentacleId =\r\n\t\t\tminion.cardId === CardIds.UnderrotSpawn_BG36_116_G\r\n\t\t\t\t? CardIds.AberrantTentacle_BGFYM_002t_G\r\n\t\t\t\t: CardIds.AberrantTentacleToken_BGFYM_002t;\r\n\t\tconst spawns = [...simplifiedSpawnEntities(tentacleId, quantity, input)];\r\n\t\tfor (const target of input.boardWithDeadEntity) {\r\n\t\t\tmodifyStats(target, minion, atk, 0, input.boardWithDeadEntity, input.boardWithDeadEntityHero, input.gameState);\r\n\t\t}\r\n\t\treturn spawns;\r\n\t},\r\n};\r\n"]}
1
+ {"version":3,"file":"underrot-spawn.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/underrot-spawn.ts"],"names":[],"mappings":";;;AAUA,+EAA+F;AAC/F,qDAAwD;AAG3C,QAAA,aAAa,GAAyB;IAClD,OAAO,EAAE,0BAAkE;IAC3E,gBAAgB,EAAE,CAAC,MAAmB,EAAE,KAAgC,EAAE,EAAE;QAC3E,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,iBAAqC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC5E,MAAM,GAAG,GAAG,MAAM,CAAC,cAAc,IAAI,QAAQ,CAAC;QAC9C,MAAM,UAAU,GACf,MAAM,CAAC,MAAM,iBAAqC;YACjD,CAAC;YACD,CAAC,aAAyC,CAAC;QAC7C,IAAA,0DAAqC,EAAC,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,wBAAwB,CAAC,CAAC;QAE3G,KAAK,MAAM,MAAM,IAAI,KAAK,CAAC,mBAAmB,EAAE;YAC/C,IAAA,mBAAW,EACV,MAAM,EACN,MAAM,EACN,GAAG,EACH,CAAC,EACD,KAAK,CAAC,mBAAmB,EACzB,KAAK,CAAC,uBAAuB,EAC7B,KAAK,CAAC,SAAS,CACf,CAAC;SACF;QACD,OAAO,EAAE,CAAC;IACX,CAAC;CACD,CAAC","sourcesContent":["/**\r\n * Underrot Spawn (Tier 2, 2/2)\r\n * Deathrattle: Summon a 0/2 Tentacle with Taunt. Give your minions +1 Attack.\r\n *\r\n * Golden Underrot Spawn (Tier 2, 4/4)\r\n * Deathrattle: Summon two 0/2 Tentacles with Taunt. Give your minions +2 Attack.\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 { simplifiedSpawnEntitiesWithAddToBoard } from '../../../simulation/deathrattle-spawns';\r\nimport { modifyStats } from '../../../simulation/stats';\r\nimport { DeathrattleSpawnCard } from '../../card.interface';\r\n\r\nexport const UnderrotSpawn: DeathrattleSpawnCard = {\r\n\tcardIds: [CardIds.UnderrotSpawn_BG36_116, CardIds.UnderrotSpawn_BG36_116_G],\r\n\tdeathrattleSpawn: (minion: BoardEntity, input: DeathrattleTriggeredInput) => {\r\n\t\tconst quantity = minion.cardId === CardIds.UnderrotSpawn_BG36_116_G ? 2 : 1;\r\n\t\tconst atk = minion.scriptDataNum1 || quantity;\r\n\t\tconst tentacleId =\r\n\t\t\tminion.cardId === CardIds.UnderrotSpawn_BG36_116_G\r\n\t\t\t\t? CardIds.AberrantTentacle_BGFYM_002t_G\r\n\t\t\t\t: CardIds.AberrantTentacleToken_BGFYM_002t;\r\n\t\tsimplifiedSpawnEntitiesWithAddToBoard(tentacleId, quantity, input, minion, input.deadEntityIndexFromRight);\r\n\r\n\t\tfor (const target of input.boardWithDeadEntity) {\r\n\t\t\tmodifyStats(\r\n\t\t\t\ttarget,\r\n\t\t\t\tminion,\r\n\t\t\t\tatk,\r\n\t\t\t\t0,\r\n\t\t\t\tinput.boardWithDeadEntity,\r\n\t\t\t\tinput.boardWithDeadEntityHero,\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"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firestone-hs/simulate-bgs-battle",
3
- "version": "1.1.752",
3
+ "version": "1.1.753",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "lint": "eslint --color --fix --ext .ts .",