Fix hero resource display

Fix hero resource display
This commit is contained in:
novgorodschi catalin
2026-07-24 09:12:52 +03:00
parent 2e53094b48
commit b5a9570034
2 changed files with 41 additions and 53 deletions
+5
View File
@@ -727,6 +727,11 @@ class Units {
'defencebonus' => $hero['defencebonus'],
'db' => $h_db,
'regeneration' => $hero['regeneration'],
// Atributul T4 "Resources" si resursa aleasa. Sunt citite cu ?? 0
// fiindca serverele care inca nu au rulat add-hero-resources.sql nu
// au coloanele - pagina trebuie sa mearga si asa.
'resources' => $hero['resources'] ?? 0,
'res_type' => $hero['res_type'] ?? 0,
'health' => $hero['health'],
'dead' => $hero['dead'],
'points' => $hero['points'],