Ticket #3859: noherdanimalsidleselection.patch

File noherdanimalsidleselection.patch, 617 bytes (added by Sandarac, 8 years ago)
  • binaries/data/mods/public/gui/session/input.js

     
    464464        var entState = GetEntityState(entity);
    465465        if (!entState)
    466466            return false;
    467         return hasClass(entState, "Unit") && entState.unitAI && entState.unitAI.isIdle;
     467        return hasClass(entState, "Unit") && entState.unitAI && entState.unitAI.isIdle && !hasClass(entState, "Domestic");
    468468    },
    469469    "isAnything": function (entity) {
    470470        return true;