From 0684a60c67d2266d4ede5914772086f258f9c8bb Mon Sep 17 00:00:00 2001 From: hdmaniak2 Date: Thu, 26 Mar 2026 07:20:35 +0100 Subject: [PATCH] Fix: Hide hero training/revive when Heros mansion is level 0 (#147) Co-authored-by: hdmaniak --- Templates/Build/37.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Templates/Build/37.tpl b/Templates/Build/37.tpl index f3214593..eb21f938 100644 --- a/Templates/Build/37.tpl +++ b/Templates/Build/37.tpl @@ -62,9 +62,9 @@ $name1 = 'unknown'; } - if(isset($_GET['land'])) { + if(isset($_GET['land']) && $village->resarray['f' . $id] >= 1) { include_once("37_land.tpl"); - } else { + } else if ($village->resarray['f' . $id] >= 1) { $include_training = true; $include_revive = false; if (isset($heroes) && is_array($heroes) && count($heroes)) {