diff --git a/frontend/src/pages/CombatPage.tsx b/frontend/src/pages/CombatPage.tsx
index ee0922c..8f149d9 100644
--- a/frontend/src/pages/CombatPage.tsx
+++ b/frontend/src/pages/CombatPage.tsx
@@ -21,7 +21,7 @@ function MonsterCard({ m, selected, onSelect }: { m: Monster; selected: boolean;
>
{m.name}
- Niv. {m.levelMin}–{m.levelMax}
+ Niv. {(m as any).minLevel ?? m.levelMin}–{(m as any).maxLevel ?? m.levelMax}
❤️ {m.hp}
@@ -43,16 +43,21 @@ function CombatLog({ result }: { result: CombatResult }) {
{won
?
- Victoire ! +{result.xpGained} XP +{result.goldGained} or
+ Victoire ! +{(result as any).rewards?.xp ?? result.xpGained} XP +{(result as any).rewards?.gold ?? result.goldGained} or
:
Défaite… −50 endurance
}
- {result.loot && (
+ {((result as any).rewards?.loot ?? result.loot) && (
- 🎁 Loot : {result.loot.material.name} ×{result.loot.quantity}
+ 🎁 Loot obtenu !
+
+ )}
+ {(result as any).rewards?.levelUp && (
+
+ 🎉 LEVEL UP ! Niveau {(result as any).rewards.newLevel} — +{(result as any).rewards.statPointsGained} points de stats
)}
@@ -190,9 +195,9 @@ export function CombatPage() {
{history.slice(0, 5).map(h => (
- {h.winner === 'player' ? '✓' : '✗'} {h.monsterName ?? 'Monstre'}
+ {h.winner === 'player' ? '✓' : '✗'} {(h as any).monster?.name ?? h.monsterName ?? 'Monstre'}
- +{h.xpGained}xp +{h.goldGained}or
+ +{(h as any).xpEarned ?? h.xpGained}xp +{(h as any).goldEarned ?? h.goldGained}or
))}