From e432eeef955b239ddfc2e7d10cc416110211364e Mon Sep 17 00:00:00 2001 From: Ferywir <65760459+Ferywir@users.noreply.github.com> Date: Wed, 24 Jun 2026 05:59:24 +0200 Subject: [PATCH] fix(rally-point): show incoming hero column for attacks [#267] (#274) --- Templates/Build/16_incomming.tpl | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Templates/Build/16_incomming.tpl b/Templates/Build/16_incomming.tpl index d743b60f..2eac8816 100644 --- a/Templates/Build/16_incomming.tpl +++ b/Templates/Build/16_incomming.tpl @@ -50,7 +50,11 @@ function cycleMarker(moveid, el){ $isElders = ($from === 0); $owner = $isElders? 0 : $database->getVillageField($from, 'owner'); $isMine = ($owner == $session->uid); - $colspan = ($u['t11'] > 0 && $isMine)? 11 : 10; + // Issue #267: reveal the hero column whenever the incoming movement + // carries a hero, not only for our own movements. For enemy attacks the + // count stays hidden ("?") via the troops-row logic below, but the hero + // icon column must still be shown so the defender sees an incoming hero. + $colspan = ($u['t11'] > 0)? 11 : 10; $tribe = $isElders? 4 : $database->getUserField($owner, 'tribe', 0); $start = ($tribe - 1) * 10 + 1; $end = $tribe * 10; @@ -88,7 +92,7 @@ function cycleMarker(moveid, el){
![<?= $technology->getUnitName($i)?><?= isset($mtimes[$i])? ': '.$mtimes[$i] : ''?>](img/x.gif)


| = $action?> = $database->getOMInfo($m['to'])['name']?> | -|||
![]() | ![]() | ||
![]() | ![]() | ||
| = TROOPS?> | '.($v?$v:'0').'' : '? | '; } else { echo $artifactsSum['totals']==0? '? | ' : ''.($v==0?'0':'?').' | '; }