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){   - + getOasis($village->wid) as $o): foreach ($database->getMovement(6,$o['wref'],0) as $m): $session->timer++; $owner=$database->getVillageField($m['from'],'owner'); $isMine=($owner==$session->uid); - $colspan=($m['t11']&&$isMine)?11:10; $tribe=$database->getUserField($owner,'tribe',0); $start=($tribe-1)*10+1; + $colspan=($m['t11'])?11:10; $tribe=$database->getUserField($owner,'tribe',0); $start=($tribe-1)*10+1; // #267: show hero column for incoming attacks too $action=($m['attack_type']==2?REINFORCEMENTFOR:($m['attack_type']==3?ATTACK_ON:RAID_ON)); $dt=$generator->procMtime($m['endtime']); ?> @@ -161,7 +165,7 @@ function cycleMarker(moveid, el){ - + '.($v?$v:'0').'' : ''; } else { echo $artifactsSum['totals']==0? '' : ''; }
getOMInfo($m['to'])['name']?>
 
 
??'.($v==0?'0':'?').'