Ticket #4271: aifix.patch
File aifix.patch, 815 bytes (added by , 8 years ago) |
---|
-
binaries/data/mods/public/simulation/ai/petra/headquarters.js
142 142 143 143 for (let evt of events.Create) 144 144 { 145 // Let's check if we have a building set to create a new base. 145 // Let's check if we have a valuable foundation needing builders quickly 146 // (normal foundations are taken care in baseManager.assignToFoundations) 146 147 let ent = gameState.getEntityById(evt.entity); 147 if (!ent || !ent.isOwn(PlayerID) )148 if (!ent || !ent.isOwn(PlayerID) || ent.foundationProgress() === undefined) 148 149 continue; 149 150 150 151 if (ent.getMetadata(PlayerID, "base") == -1)