@firestone-hs/simulate-bgs-battle 1.1.497 → 1.1.498
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.
|
@@ -3,11 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.HummingBird = void 0;
|
|
4
4
|
const reference_data_1 = require("@firestone-hs/reference-data");
|
|
5
5
|
const utils_1 = require("../../../utils");
|
|
6
|
+
const attackGranted = 1;
|
|
6
7
|
exports.HummingBird = {
|
|
7
8
|
startOfCombat: (minion, input) => {
|
|
8
9
|
const multiplier = minion.cardId === "BG26_805_G" ? 2 : 1;
|
|
9
|
-
(0, utils_1.addStatsToBoard)(minion, input.playerBoard, input.playerEntity,
|
|
10
|
-
input.playerEntity.globalInfo.GoldrinnBuffAtk +=
|
|
10
|
+
(0, utils_1.addStatsToBoard)(minion, input.playerBoard, input.playerEntity, attackGranted * multiplier, 0, input.gameState, reference_data_1.Race[reference_data_1.Race.BEAST]);
|
|
11
|
+
input.playerEntity.globalInfo.GoldrinnBuffAtk += attackGranted * multiplier;
|
|
11
12
|
return true;
|
|
12
13
|
},
|
|
13
14
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"humming-bird.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/humming-bird.ts"],"names":[],"mappings":";;;AAAA,iEAA6D;AAG7D,0CAAiD;
|
|
1
|
+
{"version":3,"file":"humming-bird.js","sourceRoot":"","sources":["../../../../src/cards/impl/minion/humming-bird.ts"],"names":[],"mappings":";;;AAAA,iEAA6D;AAG7D,0CAAiD;AAEjD,MAAM,aAAa,GAAG,CAAC,CAAC;AAEX,QAAA,WAAW,GAAG;IAC1B,aAAa,EAAE,CAAC,MAAmB,EAAE,KAAe,EAAE,EAAE;QACvD,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,iBAAmC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC5E,IAAA,uBAAe,EACd,MAAM,EACN,KAAK,CAAC,WAAW,EACjB,KAAK,CAAC,YAAY,EAClB,aAAa,GAAG,UAAU,EAC1B,CAAC,EACD,KAAK,CAAC,SAAS,EACf,qBAAI,CAAC,qBAAI,CAAC,KAAK,CAAC,CAChB,CAAC;QACF,KAAK,CAAC,YAAY,CAAC,UAAU,CAAC,eAAe,IAAI,aAAa,GAAG,UAAU,CAAC;QAC5E,OAAO,IAAI,CAAC;IACb,CAAC;CACD,CAAC","sourcesContent":["import { CardIds, Race } 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 { addStatsToBoard } from '../../../utils';\r\n\r\nconst attackGranted = 1;\r\n\r\nexport const HummingBird = {\r\n\tstartOfCombat: (minion: BoardEntity, input: SoCInput) => {\r\n\t\tconst multiplier = minion.cardId === CardIds.HummingBird_BG26_805_G ? 2 : 1;\r\n\t\taddStatsToBoard(\r\n\t\t\tminion,\r\n\t\t\tinput.playerBoard,\r\n\t\t\tinput.playerEntity,\r\n\t\t\tattackGranted * multiplier,\r\n\t\t\t0,\r\n\t\t\tinput.gameState,\r\n\t\t\tRace[Race.BEAST],\r\n\t\t);\r\n\t\tinput.playerEntity.globalInfo.GoldrinnBuffAtk += attackGranted * multiplier;\r\n\t\treturn true;\r\n\t},\r\n};\r\n"]}
|