@firestone-hs/simulate-bgs-battle 1.1.473 → 1.1.475

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.
@@ -16,7 +16,6 @@ const stats_1 = require("./stats");
16
16
  const summon_when_space_1 = require("./summon-when-space");
17
17
  const golden_1 = require("./utils/golden");
18
18
  const handleStartOfCombat = (playerEntity, playerBoard, opponentEntity, opponentBoard, currentAttacker, gameState) => {
19
- (0, summon_when_space_1.handleSummonsWhenSpace)(playerBoard, playerEntity, opponentBoard, opponentEntity, gameState);
20
19
  const shouldRecomputeCurrentAttacker = true;
21
20
  if (shouldRecomputeCurrentAttacker) {
22
21
  currentAttacker =
@@ -201,8 +200,8 @@ const handleStartOfCombatQuestRewardsForPlayer = (playerEntity, playerBoard, opp
201
200
  (0, divine_shield_1.updateDivineShield)(playerBoard[0], playerBoard, playerEntity, opponentEntity, true, gameState);
202
201
  gameState.spectator.registerPowerTarget(playerEntity, playerBoard[0], playerBoard, null, null);
203
202
  if (playerBoard.length > 1) {
204
- (0, divine_shield_1.updateDivineShield)(playerBoard[1], playerBoard, playerEntity, opponentEntity, true, gameState);
205
- gameState.spectator.registerPowerTarget(playerEntity, playerBoard[1], playerBoard, null, null);
203
+ (0, divine_shield_1.updateDivineShield)(playerBoard[playerBoard.length - 1], playerBoard, playerEntity, opponentEntity, true, gameState);
204
+ gameState.spectator.registerPowerTarget(playerEntity, playerBoard[playerBoard.length - 1], playerBoard, null, null);
206
205
  }
207
206
  }
208
207
  break;
@@ -427,7 +426,7 @@ const handleStartOfCombatQuestRewardsForPlayer = (playerEntity, playerBoard, opp
427
426
  return currentAttacker;
428
427
  };
429
428
  const handleStartOfCombatSpellsForPlayer = (playerEntity, playerBoard, opponentEntity, opponentBoard, currentAttacker, gameState) => {
430
- var _a, _b;
429
+ var _a;
431
430
  if (playerEntity.startOfCombatDone) {
432
431
  return currentAttacker;
433
432
  }
@@ -445,7 +444,7 @@ const handleStartOfCombatSpellsForPlayer = (playerEntity, playerBoard, opponentE
445
444
  }
446
445
  break;
447
446
  case "BG28_603":
448
- secret.scriptDataNum1 = (_b = secret.scriptDataNum1) !== null && _b !== void 0 ? _b : 1;
447
+ secret.scriptDataNum1 = 1;
449
448
  break;
450
449
  case "BG28_519":
451
450
  (0, utils_2.addStatsToBoard)(secret, playerBoard, playerEntity, 2, 1, gameState);