@firestone-hs/simulate-bgs-battle 1.1.549 → 1.1.551
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/board-entity.d.ts +3 -0
- package/dist/board-entity.js.map +1 -1
- package/dist/cards/impl/anomaly/anomalous-twin.js +1 -1
- package/dist/cards/impl/anomaly/anomalous-twin.js.map +1 -1
- package/dist/cards/impl/bg-spell/toxic-tumbleweed.js +1 -1
- package/dist/cards/impl/bg-spell/toxic-tumbleweed.js.map +1 -1
- package/dist/cards/impl/hero-power/embrace-your-rage.js +1 -1
- package/dist/cards/impl/hero-power/embrace-your-rage.js.map +1 -1
- package/dist/cards/impl/minion/battlecruiser.js +6 -7
- package/dist/cards/impl/minion/battlecruiser.js.map +1 -1
- package/dist/cards/impl/minion/captain-bonerender.js +1 -1
- package/dist/cards/impl/minion/captain-bonerender.js.map +1 -1
- package/dist/cards/impl/minion/carbonic-copy.js +1 -1
- package/dist/cards/impl/minion/carbonic-copy.js.map +1 -1
- package/dist/cards/impl/minion/diremuck-forager.js +1 -1
- package/dist/cards/impl/minion/diremuck-forager.js.map +1 -1
- package/dist/cards/impl/minion/zergling.js +1 -1
- package/dist/cards/impl/minion/zergling.js.map +1 -1
- package/dist/cards/impl/quest-reward/evil-twin.js +1 -1
- package/dist/cards/impl/quest-reward/evil-twin.js.map +1 -1
- package/dist/cards/impl/trinket/automaton-portrait.js +1 -1
- package/dist/cards/impl/trinket/automaton-portrait.js.map +1 -1
- package/dist/cards/impl/trinket/fishy-sticker.js +1 -1
- package/dist/cards/impl/trinket/fishy-sticker.js.map +1 -1
- package/dist/cards/impl/trinket/karazhan-chess-set.js +1 -1
- package/dist/cards/impl/trinket/karazhan-chess-set.js.map +1 -1
- package/dist/cards/impl/trinket/ship-in-a-bottle.js +1 -1
- package/dist/cards/impl/trinket/ship-in-a-bottle.js.map +1 -1
- package/dist/cards/impl/trinket/summoning-sphere.js +1 -1
- package/dist/cards/impl/trinket/summoning-sphere.js.map +1 -1
- package/dist/simulation/after-attack.js +2 -0
- package/dist/simulation/after-attack.js.map +1 -1
- package/dist/simulation/attack.js +2 -7
- package/dist/simulation/attack.js.map +1 -1
- package/dist/simulation/avenge.js +2 -2
- package/dist/simulation/avenge.js.map +1 -1
- package/dist/simulation/battlecries.js +2 -2
- package/dist/simulation/battlecries.js.map +1 -1
- package/dist/simulation/damage-effects.js +6 -1
- package/dist/simulation/damage-effects.js.map +1 -1
- package/dist/simulation/death-effects.js +2 -2
- package/dist/simulation/death-effects.js.map +1 -1
- package/dist/simulation/deathrattle-effects.js +2 -2
- package/dist/simulation/deathrattle-effects.js.map +1 -1
- package/dist/simulation/deathrattle-orchestration.js +1 -1
- package/dist/simulation/deathrattle-orchestration.js.map +1 -1
- package/dist/simulation/deathrattle-spawns.d.ts +1 -5
- package/dist/simulation/deathrattle-spawns.js +75 -75
- package/dist/simulation/deathrattle-spawns.js.map +1 -1
- package/dist/simulation/minion-death.js +1 -1
- package/dist/simulation/minion-death.js.map +1 -1
- package/dist/simulation/on-attack.js +0 -2
- package/dist/simulation/on-attack.js.map +1 -1
- package/dist/simulation/reborn.js +1 -1
- package/dist/simulation/reborn.js.map +1 -1
- package/dist/simulation/secrets.js +4 -4
- package/dist/simulation/secrets.js.map +1 -1
- package/dist/simulation/stats.js +2 -4
- package/dist/simulation/stats.js.map +1 -1
- package/dist/simulation/summon-when-space.js +5 -5
- package/dist/simulation/summon-when-space.js.map +1 -1
- package/dist/utils.js +6 -5
- package/dist/utils.js.map +1 -1
- package/package.json +1 -1
|
@@ -10,19 +10,19 @@ const cards_in_hand_1 = require("./cards-in-hand");
|
|
|
10
10
|
const deathrattle_effects_1 = require("./deathrattle-effects");
|
|
11
11
|
const deathrattle_on_trigger_1 = require("./deathrattle-on-trigger");
|
|
12
12
|
const simplifiedSpawnEntities = (cardId, quantity, input, boardEntityToSpawn = null) => {
|
|
13
|
-
|
|
14
|
-
if ((_a = input.gameState.anomalies) === null || _a === void 0 ? void 0 : _a.includes("BG27_Anomaly_801")) {
|
|
15
|
-
if (!input.gameState.allCards.getCard(cardId).premium) {
|
|
16
|
-
const premiumDbfId = input.gameState.allCards.getCard(cardId).battlegroundsPremiumDbfId;
|
|
17
|
-
cardId = input.gameState.allCards.getCard(premiumDbfId).id;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
return (0, exports.spawnEntities)(cardId, quantity, input.boardWithDeadEntity, input.boardWithDeadEntityHero, input.otherBoard, input.otherBoardHero, input.gameState.allCards, input.gameState.cardsData, input.gameState.sharedState, input.gameState.spectator, input.deadEntity.friendly, false, false, false, boardEntityToSpawn);
|
|
13
|
+
return (0, exports.spawnEntities)(cardId, quantity, input.boardWithDeadEntity, input.boardWithDeadEntityHero, input.otherBoard, input.otherBoardHero, input.gameState, input.deadEntity.friendly, false, false, false, boardEntityToSpawn);
|
|
21
14
|
};
|
|
22
15
|
exports.simplifiedSpawnEntities = simplifiedSpawnEntities;
|
|
23
|
-
const spawnEntities = (cardId, quantity, boardToSpawnInto, boardToSpawnIntoHero, otherBoard, otherHero,
|
|
16
|
+
const spawnEntities = (cardId, quantity, boardToSpawnInto, boardToSpawnIntoHero, otherBoard, otherHero, gameState, friendly, limitSpawns, spawnReborn = false, useKhadgar = true, boardEntityToSpawn = null, originalEntity = null) => {
|
|
17
|
+
var _a;
|
|
24
18
|
if (!cardId) {
|
|
25
|
-
console.error('Cannot spawn a minion without any cardId defined', (0, utils_2.stringifySimple)(boardToSpawnInto, allCards), new Error().stack);
|
|
19
|
+
console.error('Cannot spawn a minion without any cardId defined', (0, utils_2.stringifySimple)(boardToSpawnInto, gameState.allCards), new Error().stack);
|
|
20
|
+
}
|
|
21
|
+
if ((_a = gameState.anomalies) === null || _a === void 0 ? void 0 : _a.includes("BG27_Anomaly_801")) {
|
|
22
|
+
if (!gameState.allCards.getCard(cardId).premium) {
|
|
23
|
+
const premiumDbfId = gameState.allCards.getCard(cardId).battlegroundsPremiumDbfId;
|
|
24
|
+
cardId = gameState.allCards.getCard(premiumDbfId).id;
|
|
25
|
+
}
|
|
26
26
|
}
|
|
27
27
|
const spawnMultiplier = useKhadgar
|
|
28
28
|
? 2 * boardToSpawnInto.filter((entity) => entity.cardId === "BG_DAL_575").length || 1
|
|
@@ -35,7 +35,7 @@ const spawnEntities = (cardId, quantity, boardToSpawnInto, boardToSpawnIntoHero,
|
|
|
35
35
|
: quantity * spawnMultiplier * spawnMultiplierGolden;
|
|
36
36
|
const result = [];
|
|
37
37
|
for (let i = 0; i < minionsToSpawn; i++) {
|
|
38
|
-
const newMinion = (0, utils_2.buildSingleBoardEntity)(cardId, boardToSpawnIntoHero, boardToSpawnInto, allCards, friendly, sharedState.currentEntityId++, spawnReborn, cardsData, sharedState, boardEntityToSpawn, originalEntity);
|
|
38
|
+
const newMinion = (0, utils_2.buildSingleBoardEntity)(cardId, boardToSpawnIntoHero, boardToSpawnInto, gameState.allCards, friendly, gameState.sharedState.currentEntityId++, spawnReborn, gameState.cardsData, gameState.sharedState, boardEntityToSpawn, originalEntity);
|
|
39
39
|
if (!newMinion.cardId) {
|
|
40
40
|
console.warn('Invalid spawn', newMinion, cardId);
|
|
41
41
|
}
|
|
@@ -70,53 +70,53 @@ const spawnEntitiesFromDeathrattle = (deadEntity, boardWithDeadEntity, boardWith
|
|
|
70
70
|
else {
|
|
71
71
|
switch (deadEntityCardId) {
|
|
72
72
|
case "BOT_445":
|
|
73
|
-
spawnedEntities.push(...(0, exports.spawnEntities)("BOT_445t", 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
73
|
+
spawnedEntities.push(...(0, exports.spawnEntities)("BOT_445t", 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false));
|
|
74
74
|
break;
|
|
75
75
|
case "TB_BaconUps_002":
|
|
76
|
-
spawnedEntities.push(...(0, exports.spawnEntities)("TB_BaconUps_002t", 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
76
|
+
spawnedEntities.push(...(0, exports.spawnEntities)("TB_BaconUps_002t", 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false));
|
|
77
77
|
break;
|
|
78
78
|
case "BG29_611":
|
|
79
79
|
case "BG29_611_G":
|
|
80
80
|
spawnedEntities.push(...(0, exports.spawnEntities)(deadEntity.cardId === "BG29_611"
|
|
81
81
|
? "BG_BOT_312t"
|
|
82
|
-
: "TB_BaconUps_032t", 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
82
|
+
: "TB_BaconUps_032t", 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false));
|
|
83
83
|
break;
|
|
84
84
|
case "BG_AV_309":
|
|
85
85
|
case "BG_AV_309_G":
|
|
86
86
|
spawnedEntities.push(...(0, exports.spawnEntities)(deadEntityCardId === "BG_AV_309_G"
|
|
87
87
|
? "BG_AV_309t"
|
|
88
|
-
: "AV_309t", 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
88
|
+
: "AV_309t", 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false));
|
|
89
89
|
break;
|
|
90
90
|
case "BG25_009":
|
|
91
91
|
case "BG25_009_G":
|
|
92
92
|
spawnedEntities.push(...(0, exports.spawnEntities)(deadEntityCardId === "BG25_009_G"
|
|
93
93
|
? "BG25_008_G"
|
|
94
|
-
: "BG25_008", 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
94
|
+
: "BG25_008", 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false));
|
|
95
95
|
break;
|
|
96
96
|
case "BG21_029":
|
|
97
|
-
spawnedEntities.push(...(0, exports.spawnEntities)("BRM_006t", 2, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
97
|
+
spawnedEntities.push(...(0, exports.spawnEntities)("BRM_006t", 2, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false));
|
|
98
98
|
break;
|
|
99
99
|
case "BG21_029_G":
|
|
100
|
-
spawnedEntities.push(...(0, exports.spawnEntities)("TB_BaconUps_030t", 2, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
100
|
+
spawnedEntities.push(...(0, exports.spawnEntities)("TB_BaconUps_030t", 2, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false));
|
|
101
101
|
break;
|
|
102
102
|
case "BG_EX1_556":
|
|
103
|
-
spawnedEntities.push(...(0, exports.spawnEntities)("skele21", 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
103
|
+
spawnedEntities.push(...(0, exports.spawnEntities)("skele21", 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false));
|
|
104
104
|
break;
|
|
105
105
|
case "TB_BaconUps_006":
|
|
106
|
-
spawnedEntities.push(...(0, exports.spawnEntities)("TB_BaconUps_006t", 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
106
|
+
spawnedEntities.push(...(0, exports.spawnEntities)("TB_BaconUps_006t", 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false));
|
|
107
107
|
break;
|
|
108
108
|
case "BG19_010":
|
|
109
|
-
spawnedEntities.push(...(0, exports.spawnEntities)("BG19_010t", 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
109
|
+
spawnedEntities.push(...(0, exports.spawnEntities)("BG19_010t", 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false));
|
|
110
110
|
break;
|
|
111
111
|
case "BG19_010_G":
|
|
112
|
-
spawnedEntities.push(...(0, exports.spawnEntities)("BG19_010_Gt", 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
112
|
+
spawnedEntities.push(...(0, exports.spawnEntities)("BG19_010_Gt", 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false));
|
|
113
113
|
break;
|
|
114
114
|
case "TB_BaconShop_HERO_702_Buddy":
|
|
115
115
|
case "TB_BaconShop_HERO_702_Buddy_G":
|
|
116
116
|
const minionsToSpawnMawsworn = deadEntityCardId === "TB_BaconShop_HERO_702_Buddy_G" ? 6 : 3;
|
|
117
117
|
for (let i = 0; i < minionsToSpawnMawsworn; i++) {
|
|
118
118
|
const minionCardId = gameState.cardsData.getRandomMinionForTavernTier(1);
|
|
119
|
-
spawnedEntities.push(...(0, exports.spawnEntities)(minionCardId, 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
119
|
+
spawnedEntities.push(...(0, exports.spawnEntities)(minionCardId, 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false));
|
|
120
120
|
}
|
|
121
121
|
break;
|
|
122
122
|
case "BG25_HERO_100_Buddy":
|
|
@@ -124,67 +124,67 @@ const spawnEntitiesFromDeathrattle = (deadEntity, boardWithDeadEntity, boardWith
|
|
|
124
124
|
const minionsToSpawnFestergut = deadEntityCardId === "BG25_HERO_100_Buddy_G" ? 2 : 1;
|
|
125
125
|
for (let i = 0; i < minionsToSpawnFestergut; i++) {
|
|
126
126
|
const randomUndeadCreation = (0, utils_2.buildRandomUndeadCreation)(boardWithDeadEntityHero, boardWithDeadEntity, gameState.allCards, deadEntity.friendly, gameState.cardsData, gameState.sharedState);
|
|
127
|
-
spawnedEntities.push(...(0, exports.spawnEntities)(randomUndeadCreation.cardId, 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
127
|
+
spawnedEntities.push(...(0, exports.spawnEntities)(randomUndeadCreation.cardId, 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false, false, true, randomUndeadCreation));
|
|
128
128
|
}
|
|
129
129
|
break;
|
|
130
130
|
case "BG_KAR_005":
|
|
131
|
-
spawnedEntities.push(...(0, exports.spawnEntities)("BG_KAR_005a", 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
131
|
+
spawnedEntities.push(...(0, exports.spawnEntities)("BG_KAR_005a", 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false));
|
|
132
132
|
break;
|
|
133
133
|
case "TB_BaconUps_004":
|
|
134
|
-
spawnedEntities.push(...(0, exports.spawnEntities)("TB_BaconUps_004t", 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
134
|
+
spawnedEntities.push(...(0, exports.spawnEntities)("TB_BaconUps_004t", 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false));
|
|
135
135
|
break;
|
|
136
136
|
case "BG_CFM_316":
|
|
137
|
-
spawnedEntities.push(...(0, exports.spawnEntities)("BG_CFM_316t", Math.min(7, deadEntity.attack), boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
137
|
+
spawnedEntities.push(...(0, exports.spawnEntities)("BG_CFM_316t", Math.min(7, deadEntity.attack), boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false));
|
|
138
138
|
break;
|
|
139
139
|
case "TB_BaconUps_027":
|
|
140
|
-
spawnedEntities.push(...(0, exports.spawnEntities)("TB_BaconUps_027t", Math.min(7, deadEntity.attack), boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
140
|
+
spawnedEntities.push(...(0, exports.spawnEntities)("TB_BaconUps_027t", Math.min(7, deadEntity.attack), boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false));
|
|
141
141
|
break;
|
|
142
142
|
case "BGS_014":
|
|
143
|
-
spawnedEntities.push(...(0, exports.spawnEntities)("BRM_006t", 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
143
|
+
spawnedEntities.push(...(0, exports.spawnEntities)("BRM_006t", 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false));
|
|
144
144
|
break;
|
|
145
145
|
case "TB_BaconUps_113":
|
|
146
|
-
spawnedEntities.push(...(0, exports.spawnEntities)("TB_BaconUps_030t", 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
146
|
+
spawnedEntities.push(...(0, exports.spawnEntities)("TB_BaconUps_030t", 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false));
|
|
147
147
|
break;
|
|
148
148
|
case "OG_216":
|
|
149
|
-
spawnedEntities.push(...(0, exports.spawnEntities)("OG_216a", 2, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
149
|
+
spawnedEntities.push(...(0, exports.spawnEntities)("OG_216a", 2, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false));
|
|
150
150
|
break;
|
|
151
151
|
case "TB_BaconUps_026":
|
|
152
|
-
spawnedEntities.push(...(0, exports.spawnEntities)("TB_BaconUps_026t", 2, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
152
|
+
spawnedEntities.push(...(0, exports.spawnEntities)("TB_BaconUps_026t", 2, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false));
|
|
153
153
|
break;
|
|
154
154
|
case "BG_BOT_312":
|
|
155
|
-
spawnedEntities.push(...(0, exports.spawnEntities)("BG_BOT_312t", 3, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
155
|
+
spawnedEntities.push(...(0, exports.spawnEntities)("BG_BOT_312t", 3, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false));
|
|
156
156
|
break;
|
|
157
157
|
case "TB_BaconUps_032":
|
|
158
|
-
spawnedEntities.push(...(0, exports.spawnEntities)("TB_BaconUps_032t", 3, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
158
|
+
spawnedEntities.push(...(0, exports.spawnEntities)("TB_BaconUps_032t", 3, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false));
|
|
159
159
|
break;
|
|
160
160
|
case "BOT_537":
|
|
161
|
-
spawnedEntities.push(...(0, exports.spawnEntities)("BOT_537t", 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
161
|
+
spawnedEntities.push(...(0, exports.spawnEntities)("BOT_537t", 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false));
|
|
162
162
|
break;
|
|
163
163
|
case "TB_BaconUps_039":
|
|
164
|
-
spawnedEntities.push(...(0, exports.spawnEntities)("TB_BaconUps_039t", 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
164
|
+
spawnedEntities.push(...(0, exports.spawnEntities)("TB_BaconUps_039t", 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false));
|
|
165
165
|
break;
|
|
166
166
|
case "BG_EX1_534":
|
|
167
|
-
spawnedEntities.push(...(0, exports.spawnEntities)("BG_EX1_534t", 2, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
167
|
+
spawnedEntities.push(...(0, exports.spawnEntities)("BG_EX1_534t", 2, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false));
|
|
168
168
|
break;
|
|
169
169
|
case "TB_BaconUps_049":
|
|
170
|
-
spawnedEntities.push(...(0, exports.spawnEntities)("TB_BaconUps_049t", 2, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
170
|
+
spawnedEntities.push(...(0, exports.spawnEntities)("TB_BaconUps_049t", 2, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false));
|
|
171
171
|
break;
|
|
172
172
|
case "BG_DMF_533":
|
|
173
|
-
spawnedEntities.push(...(0, exports.spawnEntities)("BG_DMF_533t", 2, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
173
|
+
spawnedEntities.push(...(0, exports.spawnEntities)("BG_DMF_533t", 2, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false));
|
|
174
174
|
break;
|
|
175
175
|
case "TB_BaconUps_309":
|
|
176
|
-
spawnedEntities.push(...(0, exports.spawnEntities)("TB_BaconUps_309t", 2, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
176
|
+
spawnedEntities.push(...(0, exports.spawnEntities)("TB_BaconUps_309t", 2, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false));
|
|
177
177
|
break;
|
|
178
178
|
case "UNG_010":
|
|
179
|
-
spawnedEntities.push(...(0, exports.spawnEntities)("UNG_201t", 3, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
179
|
+
spawnedEntities.push(...(0, exports.spawnEntities)("UNG_201t", 3, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false));
|
|
180
180
|
break;
|
|
181
181
|
case "TB_BaconUps_052":
|
|
182
|
-
spawnedEntities.push(...(0, exports.spawnEntities)("TB_BaconUps_052t", 3, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
182
|
+
spawnedEntities.push(...(0, exports.spawnEntities)("TB_BaconUps_052t", 3, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false));
|
|
183
183
|
break;
|
|
184
184
|
case "BGS_008":
|
|
185
185
|
spawnedEntities.push(...[
|
|
186
|
-
...(0, exports.spawnEntities)(gameState.cardsData.ghastcoilerSpawns[Math.floor(Math.random() * gameState.cardsData.ghastcoilerSpawns.length)], 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
187
|
-
...(0, exports.spawnEntities)(gameState.cardsData.ghastcoilerSpawns[Math.floor(Math.random() * gameState.cardsData.ghastcoilerSpawns.length)], 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
186
|
+
...(0, exports.spawnEntities)(gameState.cardsData.ghastcoilerSpawns[Math.floor(Math.random() * gameState.cardsData.ghastcoilerSpawns.length)], 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false),
|
|
187
|
+
...(0, exports.spawnEntities)(gameState.cardsData.ghastcoilerSpawns[Math.floor(Math.random() * gameState.cardsData.ghastcoilerSpawns.length)], 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false),
|
|
188
188
|
]);
|
|
189
189
|
break;
|
|
190
190
|
case "TB_BaconShop_HERO_37_Buddy":
|
|
@@ -204,7 +204,7 @@ const spawnEntitiesFromDeathrattle = (deadEntity, boardWithDeadEntity, boardWith
|
|
|
204
204
|
brannSpawns.push((0, utils_1.pickRandom)(gameState.cardsData.battlecryMinions));
|
|
205
205
|
}
|
|
206
206
|
for (const brannSpawn of brannSpawns) {
|
|
207
|
-
spawnedEntities.push(...(0, exports.spawnEntities)(brannSpawn, 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
207
|
+
spawnedEntities.push(...(0, exports.spawnEntities)(brannSpawn, 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false));
|
|
208
208
|
}
|
|
209
209
|
(0, cards_in_hand_1.addCardsInHand)(boardWithDeadEntityHero, boardWithDeadEntity, brannSpawns, gameState);
|
|
210
210
|
break;
|
|
@@ -213,22 +213,22 @@ const spawnEntitiesFromDeathrattle = (deadEntity, boardWithDeadEntity, boardWith
|
|
|
213
213
|
const ghastcoilerLoop = deadEntity.cardId === "TB_BaconUps_057" ? 4 : 2;
|
|
214
214
|
for (let i = 0; i < ghastcoilerLoop; i++) {
|
|
215
215
|
spawnedEntities.push(...[
|
|
216
|
-
...(0, exports.spawnEntities)(gameState.cardsData.ghastcoilerSpawns[Math.floor(Math.random() * gameState.cardsData.ghastcoilerSpawns.length)], 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
216
|
+
...(0, exports.spawnEntities)(gameState.cardsData.ghastcoilerSpawns[Math.floor(Math.random() * gameState.cardsData.ghastcoilerSpawns.length)], 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false),
|
|
217
217
|
]);
|
|
218
218
|
}
|
|
219
219
|
break;
|
|
220
220
|
case "BG_LOOT_368":
|
|
221
|
-
spawnedEntities.push(...(0, exports.spawnEntities)("BG_CS2_065", 3, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
221
|
+
spawnedEntities.push(...(0, exports.spawnEntities)("BG_CS2_065", 3, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false));
|
|
222
222
|
break;
|
|
223
223
|
case "TB_BaconUps_059":
|
|
224
|
-
spawnedEntities.push(...(0, exports.spawnEntities)("TB_BaconUps_059t", 3, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
224
|
+
spawnedEntities.push(...(0, exports.spawnEntities)("TB_BaconUps_059t", 3, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false));
|
|
225
225
|
break;
|
|
226
226
|
case "BG26_ETC_321":
|
|
227
227
|
case "BG26_ETC_321_G":
|
|
228
228
|
const annoyOTroupeSpawns = deadEntity.cardId === "BG26_ETC_321_G"
|
|
229
229
|
? "BG_GVG_085_G"
|
|
230
230
|
: "BG_GVG_085";
|
|
231
|
-
spawnedEntities.push(...(0, exports.spawnEntities)(annoyOTroupeSpawns, 3, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
231
|
+
spawnedEntities.push(...(0, exports.spawnEntities)(annoyOTroupeSpawns, 3, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false));
|
|
232
232
|
break;
|
|
233
233
|
case "BG21_025":
|
|
234
234
|
case "BG21_025_G":
|
|
@@ -238,25 +238,25 @@ const spawnEntitiesFromDeathrattle = (deadEntity, boardWithDeadEntity, boardWith
|
|
|
238
238
|
(cardParam - entitiesToSpawn);
|
|
239
239
|
spawnedEntities.push(...(0, exports.spawnEntities)(deadEntityCardId === "BG21_025_G"
|
|
240
240
|
? "TB_BaconUps_032t"
|
|
241
|
-
: "BG_BOT_312t", entitiesToSpawn, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
241
|
+
: "BG_BOT_312t", entitiesToSpawn, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, true));
|
|
242
242
|
(0, utils_2.addStatsToBoard)(deadEntity, boardWithDeadEntity, boardWithDeadEntityHero, buffAmount, buffAmount, gameState, reference_data_1.Race[reference_data_1.Race.MECH]);
|
|
243
243
|
(0, utils_2.addStatsToBoard)(deadEntity, spawnedEntities, boardWithDeadEntityHero, buffAmount, buffAmount, gameState, reference_data_1.Race[reference_data_1.Race.MECH]);
|
|
244
244
|
break;
|
|
245
245
|
case "BGS_079":
|
|
246
246
|
spawnedEntities.push(...[
|
|
247
|
-
...(0, exports.spawnEntities)(gameState.cardsData.pirateSpawns[Math.floor(Math.random() * gameState.cardsData.pirateSpawns.length)], 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
248
|
-
...(0, exports.spawnEntities)(gameState.cardsData.pirateSpawns[Math.floor(Math.random() * gameState.cardsData.pirateSpawns.length)], 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
249
|
-
...(0, exports.spawnEntities)(gameState.cardsData.pirateSpawns[Math.floor(Math.random() * gameState.cardsData.pirateSpawns.length)], 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
247
|
+
...(0, exports.spawnEntities)(gameState.cardsData.pirateSpawns[Math.floor(Math.random() * gameState.cardsData.pirateSpawns.length)], 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false),
|
|
248
|
+
...(0, exports.spawnEntities)(gameState.cardsData.pirateSpawns[Math.floor(Math.random() * gameState.cardsData.pirateSpawns.length)], 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false),
|
|
249
|
+
...(0, exports.spawnEntities)(gameState.cardsData.pirateSpawns[Math.floor(Math.random() * gameState.cardsData.pirateSpawns.length)], 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false),
|
|
250
250
|
]);
|
|
251
251
|
break;
|
|
252
252
|
case "TB_BaconUps_137":
|
|
253
253
|
spawnedEntities.push(...[
|
|
254
|
-
...(0, exports.spawnEntities)(gameState.cardsData.pirateSpawns[Math.floor(Math.random() * gameState.cardsData.pirateSpawns.length)], 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
255
|
-
...(0, exports.spawnEntities)(gameState.cardsData.pirateSpawns[Math.floor(Math.random() * gameState.cardsData.pirateSpawns.length)], 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
256
|
-
...(0, exports.spawnEntities)(gameState.cardsData.pirateSpawns[Math.floor(Math.random() * gameState.cardsData.pirateSpawns.length)], 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
257
|
-
...(0, exports.spawnEntities)(gameState.cardsData.pirateSpawns[Math.floor(Math.random() * gameState.cardsData.pirateSpawns.length)], 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
258
|
-
...(0, exports.spawnEntities)(gameState.cardsData.pirateSpawns[Math.floor(Math.random() * gameState.cardsData.pirateSpawns.length)], 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
259
|
-
...(0, exports.spawnEntities)(gameState.cardsData.pirateSpawns[Math.floor(Math.random() * gameState.cardsData.pirateSpawns.length)], 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
254
|
+
...(0, exports.spawnEntities)(gameState.cardsData.pirateSpawns[Math.floor(Math.random() * gameState.cardsData.pirateSpawns.length)], 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false),
|
|
255
|
+
...(0, exports.spawnEntities)(gameState.cardsData.pirateSpawns[Math.floor(Math.random() * gameState.cardsData.pirateSpawns.length)], 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false),
|
|
256
|
+
...(0, exports.spawnEntities)(gameState.cardsData.pirateSpawns[Math.floor(Math.random() * gameState.cardsData.pirateSpawns.length)], 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false),
|
|
257
|
+
...(0, exports.spawnEntities)(gameState.cardsData.pirateSpawns[Math.floor(Math.random() * gameState.cardsData.pirateSpawns.length)], 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false),
|
|
258
|
+
...(0, exports.spawnEntities)(gameState.cardsData.pirateSpawns[Math.floor(Math.random() * gameState.cardsData.pirateSpawns.length)], 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false),
|
|
259
|
+
...(0, exports.spawnEntities)(gameState.cardsData.pirateSpawns[Math.floor(Math.random() * gameState.cardsData.pirateSpawns.length)], 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false),
|
|
260
260
|
]);
|
|
261
261
|
break;
|
|
262
262
|
case "BG26_804":
|
|
@@ -267,7 +267,7 @@ const spawnEntitiesFromDeathrattle = (deadEntity, boardWithDeadEntity, boardWith
|
|
|
267
267
|
const octosariSpawn = deadEntity.cardId === "BG26_804_G"
|
|
268
268
|
? "BG26_803_Gt"
|
|
269
269
|
: "BG26_803t";
|
|
270
|
-
const octoSpawns = (0, exports.spawnEntities)(octosariSpawn, 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
270
|
+
const octoSpawns = (0, exports.spawnEntities)(octosariSpawn, 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false);
|
|
271
271
|
octoSpawns.forEach((b) => {
|
|
272
272
|
b.attack = stats;
|
|
273
273
|
b.health = stats;
|
|
@@ -290,7 +290,7 @@ const spawnEntitiesFromDeathrattle = (deadEntity, boardWithDeadEntity, boardWith
|
|
|
290
290
|
: null;
|
|
291
291
|
if (spawn) {
|
|
292
292
|
spawn.locked = true;
|
|
293
|
-
const bassgillSpawns = (0, exports.spawnEntities)(spawn.cardId, 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
293
|
+
const bassgillSpawns = (0, exports.spawnEntities)(spawn.cardId, 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false, false, true, { ...spawn });
|
|
294
294
|
for (const s of bassgillSpawns) {
|
|
295
295
|
s.onCanceledSummon = () => (spawn.locked = false);
|
|
296
296
|
}
|
|
@@ -306,7 +306,7 @@ const spawnEntitiesFromDeathrattle = (deadEntity, boardWithDeadEntity, boardWith
|
|
|
306
306
|
.filter((entity) => (0, utils_2.hasCorrectTribe)(entity, boardWithDeadEntityHero, reference_data_1.Race.DEMON, gameState.allCards))
|
|
307
307
|
.slice(0, cultistStharaSpawnNumber);
|
|
308
308
|
cultistStharaSpawnCandidates.forEach((candidate) => {
|
|
309
|
-
const spawns = (0, exports.spawnEntities)(candidate.cardId, 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
309
|
+
const spawns = (0, exports.spawnEntities)(candidate.cardId, 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false, false, true);
|
|
310
310
|
spawns.forEach((spawn) => {
|
|
311
311
|
var _a, _b;
|
|
312
312
|
spawn.attack = (_a = candidate.maxAttack) !== null && _a !== void 0 ? _a : candidate.attack;
|
|
@@ -332,13 +332,13 @@ const spawnEntitiesFromDeathrattle = (deadEntity, boardWithDeadEntity, boardWith
|
|
|
332
332
|
enchantments: [...minionToCopy.enchantments],
|
|
333
333
|
pendingAttackBuffs: [],
|
|
334
334
|
};
|
|
335
|
-
spawnedEntities.push(...(0, exports.spawnEntities)(copy.cardId, 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
335
|
+
spawnedEntities.push(...(0, exports.spawnEntities)(copy.cardId, 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false, false, true, copy));
|
|
336
336
|
copied.push(copy.entityId);
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
339
|
break;
|
|
340
340
|
case "BG26_RLK_833":
|
|
341
|
-
spawnedEntities.push(...(0, exports.spawnEntities)("RLK_833t", 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
341
|
+
spawnedEntities.push(...(0, exports.spawnEntities)("RLK_833t", 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false));
|
|
342
342
|
break;
|
|
343
343
|
default:
|
|
344
344
|
hasTriggered = false;
|
|
@@ -383,41 +383,41 @@ const spawnEntitiesFromEnchantments = (deadEntity, boardWithDeadEntity, boardWit
|
|
|
383
383
|
case "BG26_055_Ge":
|
|
384
384
|
spawnedEntities.push(...(0, exports.spawnEntities)(enchantment.cardId === "BG26_055e"
|
|
385
385
|
? "BG26_055"
|
|
386
|
-
: "BG26_055_G", 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
386
|
+
: "BG26_055_G", 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false));
|
|
387
387
|
break;
|
|
388
388
|
case "BG_BOT_312e":
|
|
389
|
-
spawnedEntities.push(...(0, exports.spawnEntities)("BG_BOT_312t", 3, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
389
|
+
spawnedEntities.push(...(0, exports.spawnEntities)("BG_BOT_312t", 3, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false));
|
|
390
390
|
break;
|
|
391
391
|
case "TB_BaconUps_032e":
|
|
392
|
-
spawnedEntities.push(...(0, exports.spawnEntities)("TB_BaconUps_032t", 3, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
392
|
+
spawnedEntities.push(...(0, exports.spawnEntities)("TB_BaconUps_032t", 3, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false));
|
|
393
393
|
break;
|
|
394
394
|
case "UNG_999t2e":
|
|
395
|
-
spawnedEntities.push(...(0, exports.spawnEntities)("UNG_999t2t1", 2, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
395
|
+
spawnedEntities.push(...(0, exports.spawnEntities)("UNG_999t2t1", 2, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false));
|
|
396
396
|
break;
|
|
397
397
|
case "BG22_HERO_001p_t1e":
|
|
398
|
-
spawnedEntities.push(...(0, exports.spawnEntities)("BG22_HERO_001p_t1et", 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
398
|
+
spawnedEntities.push(...(0, exports.spawnEntities)("BG22_HERO_001p_t1et", 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false));
|
|
399
399
|
break;
|
|
400
400
|
case "BG28_603e":
|
|
401
|
-
spawnedEntities.push(...(0, exports.spawnEntities)("BG28_603t", 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
401
|
+
spawnedEntities.push(...(0, exports.spawnEntities)("BG28_603t", 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false));
|
|
402
402
|
break;
|
|
403
403
|
case "BG29_875e":
|
|
404
|
-
spawnedEntities.push(...(0, exports.spawnEntities)("BG29_875t", 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
404
|
+
spawnedEntities.push(...(0, exports.spawnEntities)("BG29_875t", 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false));
|
|
405
405
|
break;
|
|
406
406
|
case "BG29_875_Ge":
|
|
407
|
-
spawnedEntities.push(...(0, exports.spawnEntities)("BG29_875_Gt", 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
407
|
+
spawnedEntities.push(...(0, exports.spawnEntities)("BG29_875_Gt", 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false));
|
|
408
408
|
break;
|
|
409
409
|
case "BG21_HERO_030pe":
|
|
410
410
|
const tavernTier = (_a = deadEntity.tavernTier) !== null && _a !== void 0 ? _a : gameState.cardsData.getTavernLevel(deadEntity.cardId);
|
|
411
|
-
spawnedEntities.push(...(0, exports.spawnEntities)(gameState.cardsData.getRandomMinionForTavernTier(Math.max(1, tavernTier - 1)), 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
411
|
+
spawnedEntities.push(...(0, exports.spawnEntities)(gameState.cardsData.getRandomMinionForTavernTier(Math.max(1, tavernTier - 1)), 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false));
|
|
412
412
|
break;
|
|
413
413
|
case "BG27_004e":
|
|
414
414
|
case "BG27_004_Ge":
|
|
415
415
|
spawnedEntities.push(...(0, exports.spawnEntities)(enchantment.cardId === "BG27_004_Ge"
|
|
416
416
|
? "BG27_004_Gt2"
|
|
417
|
-
: "BG27_004t2", 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
417
|
+
: "BG27_004t2", 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false));
|
|
418
418
|
break;
|
|
419
419
|
case "BG30_MagicItem_952e":
|
|
420
|
-
spawnedEntities.push(...(0, exports.spawnEntities)("BG26_537", 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState
|
|
420
|
+
spawnedEntities.push(...(0, exports.spawnEntities)("BG26_537", 1, boardWithDeadEntity, boardWithDeadEntityHero, otherBoard, otherBoardHero, gameState, deadEntity.friendly, false));
|
|
421
421
|
break;
|
|
422
422
|
default:
|
|
423
423
|
deathrattleTriggered = false;
|