Skip to content

Commit

Permalink
Fix #10423
Browse files Browse the repository at this point in the history
  • Loading branch information
RecursiveVision committed Nov 2, 2023
1 parent e56ea9a commit 0411b1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion (2) Vox Populi/LUA/UnitPanel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1765,7 +1765,7 @@ function TipHandler( control )
if (pImprovement) then
local iResourceID = pPlot:GetResourceType(iActiveTeam);
if (iResourceID ~= -1) then
if (pPlot:IsResourceConnectedByImprovement(iImprovement)) then
if (pPlot:IsResourceConnectedByImprovement(iImprovement) and pPlot:GetOwner() == unit:GetOwner()) then
if (Game.GetResourceUsageType(iResourceID) ~= ResourceUsageTypes.RESOURCEUSAGE_BONUS) then
local pResource = GameInfo.Resources[pPlot:GetResourceType(iActiveTeam)];
local strResourceString = pResource.Description;
Expand Down
2 changes: 1 addition & 1 deletion (3a) EUI Compatibility Files/LUA/UnitPanel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2031,7 +2031,7 @@ function ActionToolTipHandler( control )
end

-- Resource connection
if improvement then
if (improvement and plot:GetOwner() == unit:GetOwner) then
local resourceID = plot:GetResourceType(g_activeTeamID)
if resourceID ~= -1
and plot:IsResourceConnectedByImprovement(improvementID)
Expand Down

0 comments on commit 0411b1f

Please sign in to comment.