fixed potential teleport-issue in taskDefend/enterBuilding

all building-related setVariables are now public