Skip to content

Commit

Permalink
Fix #11525
Browse files Browse the repository at this point in the history
  • Loading branch information
axatin committed Jan 21, 2025
1 parent 03fa620 commit c1c2e4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion (3a) EUI Compatibility Files/LUA/NotificationPanel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ function( playerID, cityID, x, y, isWithGold, isWithFaithOrCulture )
local city = g_activePlayer:GetCityByID( cityID )
--print( "CityTileNotification:", city and city:GetName(), x, y, plot, city and city:GetCityPlotIndex(plot) )

if plot and city and ( ( plot:GetWorkingCity() and not city:IsPuppet() ) or Game.GetResourceUsageType( plot:GetResourceType( g_activeTeamID ) ) > 0 )
if plot and city and ( ( plot:GetWorkingCity() and not city:IsPuppet() ) or (plot:GetResourceType( g_activeTeamID ) ~= -1 and Game.GetResourceUsageType( plot:GetResourceType( g_activeTeamID ) ) > 0 ))
-- valid plot, either worked by city which is not a puppet, or has some kind of resource we can use
then
g_activePlayer:AddNotification( NotificationTypes.NOTIFICATION_CITY_TILE,
Expand Down

0 comments on commit c1c2e4e

Please sign in to comment.