diff --git a/agot-bg-game-server/public/images/house-cards/AeronDamphairDwD-nerved.png b/agot-bg-game-server/public/images/house-cards/AeronDamphairDwD-nerfed.png similarity index 100% rename from agot-bg-game-server/public/images/house-cards/AeronDamphairDwD-nerved.png rename to agot-bg-game-server/public/images/house-cards/AeronDamphairDwD-nerfed.png diff --git a/agot-bg-game-server/public/images/house-cards/Balon-nerved.png b/agot-bg-game-server/public/images/house-cards/Balon-nerfed.png similarity index 100% rename from agot-bg-game-server/public/images/house-cards/Balon-nerved.png rename to agot-bg-game-server/public/images/house-cards/Balon-nerfed.png diff --git a/agot-bg-game-server/src/client/GameLogListComponent.tsx b/agot-bg-game-server/src/client/GameLogListComponent.tsx index 87cc677ee..f7673e744 100644 --- a/agot-bg-game-server/src/client/GameLogListComponent.tsx +++ b/agot-bg-game-server/src/client/GameLogListComponent.tsx @@ -98,13 +98,13 @@ export default class GameLogListComponent extends Component h.houseCards.has(originalId)); @@ -665,7 +665,7 @@ function nervHouseCard(game: Game, hcId: string, newAbilityId: string): void { if (game.draftableHouseCards.has(hcId)) { game.draftableHouseCards.delete(hcId); - game.draftableHouseCards.set(hcId + "-nerved", houseCard); + game.draftableHouseCards.set(hcId + "-nerfed", houseCard); } } } \ No newline at end of file diff --git a/agot-bg-game-server/src/server/serializedGameMigrations.ts b/agot-bg-game-server/src/server/serializedGameMigrations.ts index 446a22646..f1a1f154d 100644 --- a/agot-bg-game-server/src/server/serializedGameMigrations.ts +++ b/agot-bg-game-server/src/server/serializedGameMigrations.ts @@ -2271,6 +2271,12 @@ const serializedGameMigrations: {version: string; migrate: (serializeGamed: any) if (aeronDwdNerfed) { aeronDwdNerfed[1].abilityId = "quentyn-martell"; } + + // Fix typo in nerved: + houseCards.filter(([id, _shc]: any) => id.endsWith("-nerved")).forEach((item: any) => { + item[0] = item[0].replace("-nerved", "-nerfed"); + item[1].id = item[0]; + }); } return serializedGame; }